1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Merge remote changes and resolve conflicts

This commit is contained in:
MoonTestUse1
2024-12-25 04:48:19 +06:00
parent 68ce64f0d4
commit 9b2ae88e51
3 changed files with 15 additions and 33 deletions

View File

@@ -7,11 +7,6 @@ services:
dockerfile: docker/frontend/Dockerfile
container_name: support-frontend
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
depends_on:
- backend
@@ -28,7 +23,18 @@ services:
- ./backend:/app
- sqlite_data:/app/instance
ports:
- "8000:8000"
- "8081:8000"
nginx:
build:
context: ./docker/nginx
dockerfile: Dockerfile
container_name: support-nginx
restart: unless-stopped
ports:
- "8080:80" # Изменено с 80:80 на 8080:80
depends_on:
- frontend
- backend
volumes:
sqlite_data:

View File

@@ -21,24 +21,4 @@ COPY --from=build /app/dist /usr/share/nginx/html
RUN mkdir -p /etc/nginx/conf.d
# Copy nginx configuration
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
# Create required directories and set permissions
RUN mkdir -p /var/cache/nginx \
/var/cache/nginx/client_temp \
/var/cache/nginx/proxy_temp \
/var/cache/nginx/fastcgi_temp \
/var/cache/nginx/uwsgi_temp \
/var/cache/nginx/scgi_temp \
/var/run \
&& chmod 777 /var/cache/nginx \
/var/cache/nginx/client_temp \
/var/cache/nginx/proxy_temp \
/var/cache/nginx/fastcgi_temp \
/var/cache/nginx/uwsgi_temp \
/var/cache/nginx/scgi_temp \
/var/run
# Remove user directive from nginx config
CMD ["nginx", "-g", "daemon off;"]
COPY docker/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf

View File

@@ -4,11 +4,7 @@ FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY conf.d/default.conf /etc/nginx/conf.d/default.conf
# Create required directories and set permissions
RUN mkdir -p /var/cache/nginx \
/var/cache/nginx/client_temp \
/var/cache/nginx/proxy_temp \
/var/cache/nginx/fastcgi_temp \
RUN mkdir -p /var/cache/nginx \ -12,21 +12,11 @@ RUN mkdir -p /var/cache/nginx \
/var/cache/nginx/uwsgi_temp \
/var/cache/nginx/scgi_temp \
/var/run \
@@ -19,4 +15,4 @@ RUN mkdir -p /var/cache/nginx \
EXPOSE 8000
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]