b7073d9c5b
- Update .env.example with production-ready environment variables - Add frontend Aliyun deployment configuration with nginx gateway - Refactor docker-compose.server.yml for external services - Add comprehensive deployment guide (docs/DEPLOYMENT.md) - Enhance troubleshooting documentation with Git Bash path issues - Add deployment scripts (build-frontend.sh, deploy-frontend.sh) - Add deploy directory with docker-compose and nginx config - Update .gitignore to exclude temporary directories Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
921 B
YAML
36 lines
921 B
YAML
services:
|
|
ai-contract-web:
|
|
build:
|
|
context: ./app
|
|
dockerfile: Dockerfile
|
|
image: local/ai-contract-web:0.0.1
|
|
container_name: ai-contract-web
|
|
restart: unless-stopped
|
|
environment:
|
|
NODE_ENV: production
|
|
HOSTNAME: 0.0.0.0
|
|
PORT: 3000
|
|
BACKEND_BASE_URL: http://10.20.0.11:18083
|
|
NEXT_PUBLIC_API_BASE_URL: /api/v1
|
|
extra_hosts:
|
|
- "10.20.0.11:host-gateway"
|
|
networks:
|
|
- ai-contract-web-proxy
|
|
|
|
ai-contract-web-gateway:
|
|
image: nginx:1.27-alpine
|
|
container_name: ai-contract-web-gateway
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:18083:80"
|
|
volumes:
|
|
- ./nginx/web-gateway.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- /opt/apps/ai-contract-web/logs/nginx:/var/log/nginx
|
|
depends_on:
|
|
- ai-contract-web
|
|
networks:
|
|
- ai-contract-web-proxy
|
|
|
|
networks:
|
|
ai-contract-web-proxy:
|
|
name: ai-contract-web-proxy |