34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
version: "3.7"
|
|
services:
|
|
uptime:
|
|
image: git.nixc.us/nixius/uptime:production
|
|
volumes:
|
|
- "/root/tank/persist/nixc.us/uptime-kuma/production/data:/app/data"
|
|
# - "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == ingress.nixc.us
|
|
labels:
|
|
- "us.nixc.autodeploy=true"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.production_uptime-kuma_uptime.tls=true"
|
|
- "traefik.http.services.production_uptime-kuma_uptime.loadbalancer.server.port=3001"
|
|
- "traefik.http.routers.production_uptime-kuma_uptime.rule=Host(`uptime.nixc.us`)"
|
|
- "traefik.http.routers.production_uptime-kuma_uptime.entrypoints=websecure"
|
|
- "traefik.http.routers.production_uptime-kuma_uptime.tls.certresolver=letsencryptresolver"
|
|
- "traefik.http.routers.production_uptime-kuma_uptime.service=production_uptime-kuma_uptime"
|
|
- "traefik.docker.network=traefik"
|
|
# - 'traefik.http.routers.production_uptime-kuma_uptime.middlewares=authelia@docker'
|
|
networks:
|
|
- traefik
|
|
- socketproxy
|
|
dns:
|
|
- 8.8.8.8
|
|
- 4.4.4.4
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
socketproxy:
|
|
external: true |