Oculus/stack.production.yml

64 lines
1.6 KiB
YAML

networks:
ingress:
external: false
volumes:
logs:
driver: local
services:
## Ingress.nixc.us ##
reporter-ingress:
image: git.nixc.us/colin/oculus:production-reporter
environment:
- GLITCHTIP_DSN="https://05d1c1847e814dca976b68b462c86b63@glitch.nixc.us/8"
- API_ADDRESS=http://oculus_api-ingress:8080
volumes:
- logs:/logs
tmpfs:
- /tmp
networks:
- ingress
labels:
traefik.enable: "false"
oculus.interval: "60s"
oculus.cname: "reporter-ingress"
oculus.ignores: "/logs/,/tmp/"
oculus.enable: "monitor"
deploy:
placement:
constraints:
- node.hostname == ingress.nixc.us
update_config:
order: stop-first
failure_action: rollback
delay: 10s
parallelism: 1
restart_policy:
condition: on-failure
api-ingress:
image: git.nixc.us/colin/oculus:production-monitor
environment:
- GLITCHTIP_DSN="https://05d1c1847e814dca976b68b462c86b63@glitch.nixc.us/8"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- ingress
labels:
traefik.enable: "false"
oculus.interval: "60s"
oculus.cname: "api-ingress"
oculus.ignores: "/certs/*,/var/lib/docker/*,/run/*"
oculus.enable: "monitor"
deploy:
placement:
constraints:
- node.hostname == ingress.nixc.us
update_config:
order: stop-first
failure_action: rollback
delay: 0s
parallelism: 1
restart_policy:
condition: on-failure