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

change docker

This commit is contained in:
MoonTestUse1
2024-12-24 00:03:42 +06:00
parent baaf9afc84
commit 3660537cd8
4 changed files with 26 additions and 54 deletions

View File

@@ -3,37 +3,35 @@ version: '3.8'
services:
frontend:
build:
context: .
dockerfile: docker/frontend/Dockerfile
context: ./frontend
dockerfile: Dockerfile
container_name: support-frontend
restart: unless-stopped
depends_on:
- backend
volumes:
- frontend_build:/app/dist
backend:
build:
context: .
dockerfile: docker/backend/Dockerfile
context: ./backend
dockerfile: Dockerfile
container_name: support-backend
restart: unless-stopped
environment:
- TELEGRAM_BOT_TOKEN=7677506032:AAHEqNUr1lIUfNVbLwaWIaPeKKShsCyz3eo
- TELEGRAM_CHAT_ID=-1002037023574
volumes:
- ./backend:/app
- sqlite_data:/app/instance
ports:
- "8000:8000"
nginx:
build:
context: .
dockerfile: docker/frontend/Dockerfile
image: nginx:alpine
container_name: support-nginx
restart: unless-stopped
ports:
- "80:80"
volumes:
- frontend_build:/usr/share/nginx/html:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- frontend
- backend
volumes:
sqlite_data:
frontend_build: