40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
services:
|
|
ai-contract-web:
|
|
build:
|
|
context: ./app
|
|
dockerfile: Dockerfile
|
|
args:
|
|
BACKEND_BASE_URL: ${BACKEND_BASE_URL:-http://10.20.0.11:8001}
|
|
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL:-/api/v1}
|
|
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:8001
|
|
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
|