services: tigerstyle-whiskers-docs: build: . container_name: tigerstyle-whiskers-docs restart: unless-stopped # Health check healthcheck: test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80/health"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Caddy Docker Proxy labels for reverse proxy labels: caddy: "whiskers.${DOMAIN:-localhost}" caddy.reverse_proxy: "{{upstreams 80}}" # Connect to Caddy network for reverse proxy networks: - caddy # Environment variables environment: - NODE_ENV=production - SITE_TITLE=TigerStyle Whiskers Documentation - SITE_DESCRIPTION=WordPress GDPR Compliance Plugin Documentation # Resource limits deploy: resources: limits: memory: 256M cpus: '0.5' reservations: memory: 128M cpus: '0.25' # External Caddy network for reverse proxy networks: caddy: external: true