Add route, Update workflow
This commit is contained in:
parent
f1b14ac7ea
commit
296c006fd9
4 changed files with 96 additions and 26 deletions
48
docker-compose.yml
Normal file
48
docker-compose.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue