25 lines
446 B
YAML
25 lines
446 B
YAML
|
|
version: '3.8'
|
||
|
|
services:
|
||
|
|
nginx:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
container_name: aigc-nginx
|
||
|
|
ports:
|
||
|
|
- "80:80"
|
||
|
|
- "443:443"
|
||
|
|
volumes:
|
||
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||
|
|
- ../frontend/dist:/usr/share/nginx/html:ro
|
||
|
|
- ./logs:/var/log/nginx
|
||
|
|
networks:
|
||
|
|
- app-network
|
||
|
|
restart: unless-stopped
|
||
|
|
depends_on:
|
||
|
|
- backend
|
||
|
|
|
||
|
|
networks:
|
||
|
|
app-network:
|
||
|
|
external: true
|
||
|
|
|