php-legacy/stack.production.yml

55 lines
1.6 KiB
YAML

version: "3.9"
services:
netdata:
image: git.nixc.us/colin/netdata:production-parent
# hostname: "netdata-parent"
environment:
- VIRTUAL_HOST=netdata.nixc.us
- VIRTUAL_PORT=19999
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /mnt/tank/persist/nixc.us/netdata/production/data:/var/lib/netdata
networks:
- netdata-network
- traefik
dns:
- 1.1.1.1
- 9.9.9.9
deploy:
replicas: 1
placement:
constraints:
- node.hostname == macmini14
labels:
traefik.enable: "true"
traefik.http.routers.production-netdata.rule: "Host(`netdata.nixc.us`)"
traefik.http.services.production-netdata.loadbalancer.server.port: "19999"
traefik.http.routers.production-netdata.entrypoints: "websecure"
traefik.http.routers.production-netdata.tls.certresolver: "letsencryptresolver"
traefik.http.routers.production-netdata.service: "production-netdata"
traefik.http.routers.production-netdata.middlewares: "authelia_authelia@docker"
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