Files
asset_helper/backend/gateway/docker-compose.yml
fish 83d9a08b97 打通前后端联调链路
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 15:15:19 +08:00

30 lines
682 B
YAML

version: "3.8"
services:
gateway:
build:
context: .
dockerfile: Dockerfile
container_name: api-gateway
ports:
- "80:80"
- "443:443"
volumes:
# 开发环境:挂载配置便于热更新,生产环境应内嵌在镜像中
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
networks:
- default
- frontend_asset-helper-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
networks:
frontend_asset-helper-network:
external: true