This commit is contained in:
2025-07-01 18:57:57 +05:30
4 changed files with 16 additions and 13 deletions

View File

@@ -42,7 +42,7 @@ FROM nginx:alpine
COPY --from=development /frontend/build /usr/share/nginx/html
# Optionally copy a custom Nginx config (if needed)
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx-container.conf /etc/nginx/conf.d/default.conf
# Expose port 80 for Nginx (default HTTP port)
EXPOSE 80

13
app/nginx-container.conf Normal file
View File

@@ -0,0 +1,13 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri /index.html;
}
error_page 404 /index.html;
}

View File

@@ -11,14 +11,6 @@ services:
stdin_open: true
tty: true
ports:
- "8300:3000"
environment:
- WDS_SOCKET_PORT=0
- PORT=3000
- DOCSIFY_PORT=8201
- "8300:80"
volumes:
- ./app:/app
volumes:
frontend:
driver: local

View File

@@ -10,6 +10,4 @@ server {
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}