This commit is contained in:
aaron 2026-04-12 19:04:31 +08:00
parent 42864ce50a
commit c2ae4d0c27

View File

@ -8,8 +8,8 @@ services:
- CH_FRONTEND_URL=http://localhost
volumes:
- classhub-data:/app/data
expose:
- "8000"
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"]
interval: 30s
@ -22,21 +22,10 @@ services:
args:
- NEXT_PUBLIC_API_URL=
restart: unless-stopped
expose:
- "3000"
depends_on:
- backend
nginx:
image: nginx:alpine
restart: unless-stopped
ports:
- "3008:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- "3008:3000"
depends_on:
- backend
- frontend
volumes:
classhub-data: