更新 docker-compose.prod.yml
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m29s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m29s
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
image: registry.boss160.cn/junhong/cmp-admin-web:latest
|
image: registry.boss160.cn/junhong/cmp-admin-web:latest
|
||||||
@@ -9,12 +8,19 @@ services:
|
|||||||
- '3001:80'
|
- '3001:80'
|
||||||
networks:
|
networks:
|
||||||
- junhong-network
|
- junhong-network
|
||||||
|
|
||||||
|
# === 以下是新增的修复内容 ===
|
||||||
|
tmpfs:
|
||||||
|
- /run:rw
|
||||||
|
- /tmp:rw
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/health']
|
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/health']
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 5s
|
start_period: 5s
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
driver: 'json-file'
|
driver: 'json-file'
|
||||||
options:
|
options:
|
||||||
@@ -23,4 +29,4 @@ services:
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
junhong-network:
|
junhong-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
Reference in New Issue
Block a user