48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
|
|
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
|
||
|
|
- "silserv.registry=pakin-inspiron-15-3530.tail110d9.ts.net"
|
||
|
|
- "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
|