Merge branch 'main' of http://185.100.212.76:7776/Dwinzo-Beta/Dwinzo_Demo
This commit is contained in:
@@ -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
13
app/nginx-container.conf
Normal 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;
|
||||
}
|
||||
10
compose.yaml
10
compose.yaml
@@ -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
|
||||
|
||||
@@ -10,6 +10,4 @@ server {
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user