重构部署方案 远程发版

This commit is contained in:
zk
2026-05-27 15:07:23 +08:00
parent af6a55c660
commit a58e660933
3 changed files with 75 additions and 82 deletions
+4 -5
View File
@@ -5,9 +5,8 @@ services:
restart: unless-stopped
ports:
- "10502:80"
depends_on:
- blue
- green
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost/health"]
interval: 30s
@@ -20,7 +19,7 @@ services:
cpus: '1'
blue:
build: .
image: offerpie-ai:latest
container_name: offerpie-ai-blue
restart: unless-stopped
expose:
@@ -44,7 +43,7 @@ services:
cpus: '2'
green:
build: .
image: offerpie-ai:latest
container_name: offerpie-ai-green
restart: unless-stopped
expose: