mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
cha25
This commit is contained in:
@@ -7,9 +7,8 @@ services:
|
|||||||
dockerfile: docker/frontend/Dockerfile
|
dockerfile: docker/frontend/Dockerfile
|
||||||
container_name: support-frontend
|
container_name: support-frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
ports:
|
||||||
- ./frontend:/app
|
- "80:80"
|
||||||
- /app/node_modules
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
@@ -26,20 +25,5 @@ services:
|
|||||||
- ./backend:/app
|
- ./backend:/app
|
||||||
- sqlite_data:/app/instance
|
- sqlite_data:/app/instance
|
||||||
|
|
||||||
nginx:
|
|
||||||
image: nginx:alpine
|
|
||||||
container_name: support-nginx
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- "80:80"
|
|
||||||
volumes:
|
|
||||||
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
||||||
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
|
|
||||||
- frontend_build:/usr/share/nginx/html
|
|
||||||
depends_on:
|
|
||||||
- frontend
|
|
||||||
- backend
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
sqlite_data:
|
sqlite_data:
|
||||||
frontend_build:
|
|
@@ -17,10 +17,11 @@ FROM nginx:alpine
|
|||||||
# Copy built files
|
# Copy built files
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
# Copy nginx config
|
# Copy nginx configurations
|
||||||
|
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Create directories and set permissions
|
# Create required directories and set permissions
|
||||||
RUN mkdir -p /var/cache/nginx \
|
RUN mkdir -p /var/cache/nginx \
|
||||||
/var/cache/nginx/client_temp \
|
/var/cache/nginx/client_temp \
|
||||||
/var/cache/nginx/proxy_temp \
|
/var/cache/nginx/proxy_temp \
|
||||||
@@ -36,7 +37,4 @@ RUN mkdir -p /var/cache/nginx \
|
|||||||
/var/cache/nginx/scgi_temp \
|
/var/cache/nginx/scgi_temp \
|
||||||
/var/run
|
/var/run
|
||||||
|
|
||||||
# Remove user directive
|
|
||||||
RUN sed -i '/user/d' /etc/nginx/nginx.conf
|
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user