重构打包流程

This commit is contained in:
zk
2026-05-27 14:04:25 +08:00
parent 611aa22ec0
commit f02b7778c4
3 changed files with 83 additions and 90 deletions
+4 -11
View File
@@ -5,9 +5,8 @@ services:
restart: unless-stopped
ports:
- "10202: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,9 +19,7 @@ services:
cpus: '1'
blue:
build:
context: .
dockerfile: client-api/Dockerfile
image: offerpie-backend-client:latest
container_name: offerpie-backend-client-blue
restart: unless-stopped
expose:
@@ -46,9 +43,7 @@ services:
cpus: '2'
green:
build:
context: .
dockerfile: client-api/Dockerfile
image: offerpie-backend-client:latest
container_name: offerpie-backend-client-green
restart: unless-stopped
expose:
@@ -70,5 +65,3 @@ services:
limits:
memory: 2G
cpus: '2'