conviction-voting-demo/docker-compose.yml

23 lines
627 B
YAML

services:
conviction-voting-demo:
build: .
container_name: conviction-voting-demo
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.conviction.rule=Host(`conviction.jeffemmett.com`)"
- "traefik.http.routers.conviction.entrypoints=web"
- "traefik.http.services.conviction.loadbalancer.server.port=3000"
networks:
- traefik-public
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
traefik-public:
external: true