Update stack.production.yml

This commit is contained in:
colin 2024-01-28 17:04:55 +00:00
parent 4aa2efca7d
commit 3459f1e67b
1 changed files with 20 additions and 2 deletions

View File

@ -2,7 +2,7 @@ version: "3.9"
services:
netdata:
image: git.nixc.us/colin/netdata:production-parent
hostname: "{{.Node.Hostname}}"
# hostname: "netdata-parent"
environment:
- VIRTUAL_HOST=netdata.nixc.us
- VIRTUAL_PORT=19999
@ -12,7 +12,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /mnt/tank/persist/nixc.us/netdata/production/data:/var/lib/netdata
networks:
- traefik
- netdata-network
dns:
- 1.1.1.1
- 9.9.9.9
@ -29,6 +29,24 @@ services:
- "traefik.http.routers.production-netdata.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.production-netdata.service=production-netdata"
- "traefik.docker.network=traefik"
child:
image: git.nixc.us/colin/netdata:production-child
hostname: "{{.Node.Hostname}}"
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- netdata-network
deploy:
replicas: 1
placement:
constraints:
- node.hostname == macmini7
networks:
traefik:
external: true
netdata-network:
driver: overlay