mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/frontend/Dockerfile
|
|
container_name: support-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
|
|
- certbot-etc:/etc/letsencrypt
|
|
- certbot-var:/var/lib/letsencrypt
|
|
- webroot:/var/www/html
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- app-network
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/backend/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
|
|
networks:
|
|
- app-network
|
|
|
|
certbot:
|
|
image: certbot/certbot:latest
|
|
container_name: certbot
|
|
volumes:
|
|
- certbot-etc:/etc/letsencrypt
|
|
- certbot-var:/var/lib/letsencrypt
|
|
- webroot:/var/www/html
|
|
depends_on:
|
|
- frontend
|
|
networks:
|
|
- app-network
|
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
|
|
|
networks:
|
|
app-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
sqlite_data:
|
|
certbot-etc:
|
|
certbot-var:
|
|
webroot:
|