rfunds-online/docker-compose.yml

23 lines
663 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`) || HostRegexp(`{subdomain:[a-z0-9-]+}.rfunds.online`)"
- "traefik.http.services.rfunds.loadbalancer.server.port=3000"
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