forked from quant-speed-AI/Scoring-System
chore: 重命名容器为 cywl-scoring-* 避免与服务器其他项目冲突
This commit is contained in:
@@ -2,11 +2,11 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
# 后端服务
|
||||
backend:
|
||||
scoring-backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: scoring_backend
|
||||
container_name: cywl-scoring-backend
|
||||
restart: always
|
||||
volumes:
|
||||
- ./backend/media:/app/media
|
||||
@@ -41,18 +41,18 @@ services:
|
||||
start_period: 40s
|
||||
|
||||
# 前端服务 (Nginx)
|
||||
frontend:
|
||||
scoring-frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- VITE_API_URL=/api
|
||||
container_name: scoring_frontend
|
||||
container_name: cywl-scoring-frontend
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
backend:
|
||||
scoring-backend:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- scoring_network
|
||||
@@ -63,9 +63,9 @@ services:
|
||||
retries: 3
|
||||
|
||||
# Nginx 反向代理 (可选,用于负载均衡和 SSL)
|
||||
nginx:
|
||||
scoring-nginx:
|
||||
image: nginx:alpine
|
||||
container_name: scoring_nginx
|
||||
container_name: cywl-scoring-nginx
|
||||
restart: always
|
||||
ports:
|
||||
- "443:443"
|
||||
@@ -73,8 +73,8 @@ services:
|
||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./nginx/ssl:/etc/nginx/ssl:ro
|
||||
depends_on:
|
||||
- frontend
|
||||
- backend
|
||||
- scoring-frontend
|
||||
- scoring-backend
|
||||
networks:
|
||||
- scoring_network
|
||||
profiles:
|
||||
|
||||
Reference in New Issue
Block a user