Feature: auto-update #1

Open
opened 2025-08-07 13:33:53 +07:00 by pakin · 0 comments
Owner

ฟีเจอร์เปิดอัพเดทอัตโนมัติ

  • ต้องใส่ labels

silserv.enable=true
silserv.registry=pakin-inspiron-15-3530.tail110d9.ts.net
silserv.image=my-express-app
silserv.health-path=/health
silserv.strategy=<automatic/manual/cron>
ใส่ใน format silserv.= สำหรับ metadata อื่นๆ

  • เพิ่ม container ไปที่ network = silserv-network

Example

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
### ฟีเจอร์เปิดอัพเดทอัตโนมัติ - ต้องใส่ labels > silserv.enable=true > silserv.registry=pakin-inspiron-15-3530.tail110d9.ts.net > silserv.image=my-express-app > silserv.health-path=/health > silserv.strategy=<automatic/manual/cron> > ใส่ใน format silserv.<name>=<value> สำหรับ metadata อื่นๆ - เพิ่ม container ไปที่ network = silserv-network **Example** ```docker-compose 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 ```
pakin added the
enhancement
label 2025-08-07 13:33:53 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pakin/ggs-cron#1
No description provided.