rfunds-online/docker-compose.yml

29 lines
1000 B
YAML

services:
rfunds-online:
build:
context: ..
dockerfile: rfunds-online/Dockerfile
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.rfunds.rule=Host(`rfunds.online`) || Host(`www.rfunds.online`)"
- "traefik.http.routers.rfunds.priority=120"
- "traefik.http.services.rfunds.loadbalancer.server.port=3000"
# Wildcard router: any space subdomain routes to this app
- "traefik.http.routers.rfunds-spaces.rule=HostRegexp(`{space:[a-z0-9-]+}.rfunds.online`)"
- "traefik.http.routers.rfunds-spaces.priority=100"
- "traefik.http.routers.rfunds-spaces.entrypoints=web"
- "traefik.http.routers.rfunds-spaces.service=rfunds"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
- traefik-public
networks:
traefik-public:
external: true