1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
This commit is contained in:
MoonTestUse1
2024-12-24 19:02:59 +06:00
parent 0b05550a95
commit b34ca1c2ce
2 changed files with 20 additions and 27 deletions

View File

@@ -7,6 +7,11 @@ 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
@@ -23,19 +28,7 @@ services:
- ./backend:/app
- sqlite_data:/app/instance
ports:
- "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
- "8000:8000"
volumes:
sqlite_data:
sqlite_data:

View File

@@ -1,25 +1,25 @@
user nginx;
worker_processes auto;
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}