Support group service by shared volumes (#1439)

Signed-off-by: Hang Yan <hang.yan@hotmail.com>
This commit is contained in:
Hang Yan
2021-10-03 23:07:41 +08:00
committed by GitHub
parent 5d7ed192a4
commit 72ea6a3c24
10 changed files with 357 additions and 109 deletions
+28
View File
@@ -0,0 +1,28 @@
version: "3.5"
services:
librenms:
image: librenms/librenms:latest
container_name: librenms
hostname: librenms
ports:
- target: 8000
published: 8000
protocol: tcp
volumes:
- "./librenms:/data"
environment:
- "TZ=${TZ}"
restart: always
dispatcher:
image: librenms/dispatcher:latest
container_name: dispatcher
hostname: dispatcher
depends_on:
- librenms
volumes:
- "./librenms:/data"
environment:
- "TZ=${TZ}"
restart: always