rmaps-online/sync-server/docker-compose.yml

26 lines
693 B
YAML

services:
rmaps-sync:
build: .
container_name: rmaps-sync
restart: unless-stopped
environment:
- PORT=3001
labels:
- "traefik.enable=true"
# HTTP router (redirects to HTTPS via Cloudflare)
- "traefik.http.routers.rmaps-sync.rule=Host(`sync.rmaps.online`)"
- "traefik.http.routers.rmaps-sync.entrypoints=web"
- "traefik.http.services.rmaps-sync.loadbalancer.server.port=3001"
networks:
- traefik-public
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
traefik-public:
external: true