add netdata
This commit is contained in:
parent
a0dd607f85
commit
569c95a17a
2 changed files with 36 additions and 0 deletions
|
@ -18,6 +18,7 @@ HOST_SELFOSS=selfoss
|
||||||
HOST_BAIKAL=baikal
|
HOST_BAIKAL=baikal
|
||||||
HOST_PIGALLERY=pigallery
|
HOST_PIGALLERY=pigallery
|
||||||
HOST_DOKUWIKI=dokuwiki
|
HOST_DOKUWIKI=dokuwiki
|
||||||
|
HOST_NETDATA=netdata
|
||||||
# other
|
# other
|
||||||
TZ=Europe/Paris
|
TZ=Europe/Paris
|
||||||
BASIC_AUTH=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/
|
BASIC_AUTH=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/
|
||||||
|
|
35
netdata/docker-compose.netdata.yml
Normal file
35
netdata/docker-compose.netdata.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
netdata:
|
||||||
|
image: netdata/netdata
|
||||||
|
container_name: netdata
|
||||||
|
hostname: ${HOST_NETDATA}.${DOMAIN}
|
||||||
|
expose:
|
||||||
|
- 19999
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- SYS_PTRACE
|
||||||
|
security_opt:
|
||||||
|
- apparmor:unconfined
|
||||||
|
volumes:
|
||||||
|
- netdataconfig:/etc/netdata
|
||||||
|
- netdatalib:/var/lib/netdata
|
||||||
|
- netdatacache:/var/cache/netdata
|
||||||
|
- /etc/passwd:/host/etc/passwd:ro
|
||||||
|
- /etc/group:/host/etc/group:ro
|
||||||
|
- /proc:/host/proc:ro
|
||||||
|
- /sys:/host/sys:ro
|
||||||
|
- /etc/os-release:/host/etc/os-release:ro
|
||||||
|
networks:
|
||||||
|
- srv
|
||||||
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
|
- traefik.http.routers.netdata.rule=Host(`${HOST_NETDATA}.${DOMAIN}`)
|
||||||
|
- traefik.http.routers.netdata.entrypoints=websecure
|
||||||
|
- traefik.http.routers.netdata.tls=true
|
||||||
|
- traefik.http.services.netdata.loadbalancer.server.port=19999
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
netdataconfig:
|
||||||
|
netdatalib:
|
||||||
|
netdatacache:
|
Loading…
Add table
Reference in a new issue