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 02:32:44 +06:00
parent 800d3c4b5e
commit 5e4b459b21
3 changed files with 32 additions and 26 deletions

View File

@@ -3,19 +3,20 @@ version: '3.8'
services:
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
context: ./frontend
dockerfile: ../docker/frontend/Dockerfile
container_name: support-frontend
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
backend:
build:
context: .
dockerfile: docker/backend/Dockerfile
context: ./backend
dockerfile: ../docker/backend/Dockerfile
container_name: support-backend
restart: unless-stopped
environment:
@@ -24,6 +25,23 @@ services:
volumes:
- ./backend:/app
- sqlite_data:/app/instance
ports:
- "8000:8000"
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:
sqlite_data:
sqlite_data:
frontend_build: