36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
networks:
|
|
traefik:
|
|
external: true
|
|
default:
|
|
|
|
services:
|
|
midtownplaydio:
|
|
image: git.nixc.us/nixius/midtownplaydio:staging
|
|
networks:
|
|
- traefik
|
|
- default
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.hostname == ingress.nixc.us
|
|
preferences:
|
|
- spread: node.id
|
|
restart_policy:
|
|
condition: on-failure
|
|
update_config:
|
|
delay: 20s
|
|
parallelism: 1
|
|
order: start-first
|
|
labels:
|
|
traefik.enable: "true"
|
|
traefik.http.routers.staging_midtownplaydio.rule: "Host(`staging.midtownplaydio.nixc.us`)"
|
|
traefik.http.routers.staging_midtownplaydio.entrypoints: "websecure"
|
|
traefik.http.routers.staging_midtownplaydio.tls: "true"
|
|
traefik.http.routers.staging_midtownplaydio.tls.certresolver: "letsencryptresolver"
|
|
traefik.http.services.staging_midtownplaydio.loadbalancer.server.port: "3000"
|
|
traefik.docker.network: "traefik"
|
|
# traefik.http.services.staging_midtownplaydio.loadbalancer.healthcheck.path: "/health"
|
|
# traefik.http.services.staging_midtownplaydio.loadbalancer.healthcheck.interval: "30s"
|
|
# traefik.http.services.staging_midtownplaydio.loadbalancer.healthcheck.timeout: "5s"
|