Files
garminsync-go/docker-compose.yml
2025-08-25 18:03:20 -07:00

26 lines
634 B
YAML

version: '3.8'
services:
garminsync:
build: .
container_name: garminsync
ports:
- "8888:8888"
env_file:
- .env # Use the root .env file
volumes:
- ./data:/data
- ./internal/web/templates:/app/internal/web/templates
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8888/health"]
interval: 30s
timeout: 30s # Increased timeout for startup
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"