ggs-cron/docker-compose.yml

48 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2025-08-07 14:54:19 +07:00
version: '3.8'
services:
my-express-app:
image: pakin-inspiron-15-3530.tail110d9.ts.net/my-express-app:1.0.0
container_name: my-express-app
restart: unless-stopped
ports:
- "3000:3000"
# 🔑 KEY: These labels make your app discoverable and manageable
labels:
# Enable automatic updates
- "silserv.enable=true"
# Registry configuration
2025-08-07 17:38:05 +07:00
- "silserv.registry=pakin-inspiron-15-3530.tail110d9.ts.net/pakin"
2025-08-07 14:54:19 +07:00
- "silserv.image=my-express-app"
# Health check endpoint
- "silserv.health-path=/health"
# Update strategy: automatic, manual, or cron expression
- "silserv.strategy=automatic"
# Optional: Additional metadata
# - "silserv.<metadata_name>=<metadata_value>"
- "silserv.description=My Express Application"
- "silserv.team=backend"
# 🌐 IMPORTANT: Must be on the update-manager network
networks:
- silserv-network
environment:
- NODE_ENV=production
- APP_VERSION=1.0.0
# Health check for Docker
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
silserv-network:
external: true