Files
one-pipe-system/docker-compose.prod.yml
break cb1561a317
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 14s
fix: 修复前端部署资源保护
2026-09-20 14:42:14 +08:00

32 lines
656 B
YAML

services:
web:
image: registry.boss160.cn/junhong/cmp-admin-web:${IMAGE_TAG:-latest}
container_name: junhong-cmp-web
restart: unless-stopped
ports:
- '3001:80'
networks:
- junhong-network
# === 以下是新增的修复内容 ===
tmpfs:
- /run:rw
- /tmp:rw
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:80/health']
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
networks:
junhong-network:
driver: bridge