“vinit5112” commited on
Commit
5d2f496
·
1 Parent(s): 3d51b03

application not start

Browse files
docker-compose.yml CHANGED
@@ -15,8 +15,6 @@ services:
15
  dockerfile: Dockerfile
16
  image: ca-study-assistant-frontend
17
  container_name: frontend-container
18
- ports:
19
- - "7860:80" # Expose port 80 to the host (Hugging Face Spaces)
20
  restart: unless-stopped
21
  depends_on:
22
  - backend # Ensures the backend starts before the frontend
 
15
  dockerfile: Dockerfile
16
  image: ca-study-assistant-frontend
17
  container_name: frontend-container
 
 
18
  restart: unless-stopped
19
  depends_on:
20
  - backend # Ensures the backend starts before the frontend
frontend/Dockerfile CHANGED
@@ -28,7 +28,7 @@ RUN rm /etc/nginx/conf.d/default.conf
28
  COPY nginx.conf /etc/nginx/conf.d
29
 
30
  # Expose port 80
31
- EXPOSE 80
32
 
33
  # Start Nginx
34
  CMD ["nginx", "-g", "daemon off;"]
 
28
  COPY nginx.conf /etc/nginx/conf.d
29
 
30
  # Expose port 80
31
+ EXPOSE 7860
32
 
33
  # Start Nginx
34
  CMD ["nginx", "-g", "daemon off;"]
frontend/nginx.conf CHANGED
@@ -1,5 +1,5 @@
1
  server {
2
- listen 80;
3
 
4
  # Root directory for the React app
5
  root /usr/share/nginx/html;
 
1
  server {
2
+ listen 7860;
3
 
4
  # Root directory for the React app
5
  root /usr/share/nginx/html;