Update: Production ready with proper mapping and variables
This commit is contained in:
@@ -7,7 +7,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- ./cloud_backend/.env
|
- ./cloud_backend/.env
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/app/data
|
- ${BACKEND_DATA}:/app/data
|
||||||
|
|
||||||
sysadmin_panel:
|
sysadmin_panel:
|
||||||
build:
|
build:
|
||||||
|
|||||||
3
sysadmin_panel/.dockerignore
Normal file
3
sysadmin_panel/.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.env
|
||||||
@@ -14,7 +14,8 @@ RUN npm run build
|
|||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
EXPOSE 5175
|
EXPOSE 80
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|||||||
10
sysadmin_panel/nginx.conf
Normal file
10
sysadmin_panel/nginx.conf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user