From c2ae4d0c279e19969c9b7fd3d2fdaae169642e1e Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sun, 12 Apr 2026 19:04:31 +0800 Subject: [PATCH] 1 --- docker-compose.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 679daba..28a1be0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: