feat: 按历史痕迹恢复 nginx 同域入口
This commit is contained in:
+12
-7
@@ -50,16 +50,21 @@ services:
|
||||
networks:
|
||||
- ctms_net
|
||||
|
||||
frontend:
|
||||
nginx:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-}
|
||||
container_name: ctms_frontend
|
||||
context: .
|
||||
dockerfile: nginx/Dockerfile
|
||||
container_name: ctms_nginx
|
||||
restart: always
|
||||
ports:
|
||||
- "4173:4173"
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8888:8888"
|
||||
volumes:
|
||||
- ./nginx/certs:/etc/nginx/certs:ro
|
||||
- ./frontend/public/favicon.ico:/usr/share/nginx/html/favicon.ico:ro
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- ctms_net
|
||||
|
||||
|
||||
Reference in New Issue
Block a user