feat: 移除仓库内 nginx 并拆分前端运行时

This commit is contained in:
Cheng Zhou
2026-03-30 21:02:51 +08:00
parent 7ccb8c20cc
commit 27ba5eabff
22 changed files with 287 additions and 160 deletions
+8 -13
View File
@@ -52,22 +52,17 @@ services:
networks:
- ctms_net
nginx:
image: ${NGINX_IMAGE:-${REGISTRY_HOST:-127.0.0.1:5000}/ctms/ctms-nginx:latest}
frontend:
image: ${FRONTEND_IMAGE:-${REGISTRY_HOST:-127.0.0.1:5000}/ctms/ctms-frontend:latest}
build:
context: .
dockerfile: nginx/Dockerfile
container_name: ctms_nginx
context: ./frontend
dockerfile: Dockerfile
args:
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-http://localhost:8000}
container_name: ctms_frontend
restart: always
ports:
- "80:80" # HTTP
- "443:443" # HTTPS
- "8888:8888"
volumes:
- ./nginx/certs:/etc/nginx/certs:ro
- ./frontend/public/favicon.ico:/usr/share/nginx/html/favicon.ico:ro
depends_on:
- backend
- "4173:4173"
networks:
- ctms_net