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/www:/var/www/html:ro - ./certbot/conf:/etc/letsencrypt:ro depends_on: - backend 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 ports: - "8000:8000" certbot: image: certbot/certbot:latest container_name: certbot volumes: - ./certbot/conf:/etc/letsencrypt:rw - ./certbot/www:/var/www/html:rw command: certonly --webroot --webroot-path=/var/www/html --email admin@itformhelp.ru --agree-tos --no-eff-email --force-renewal -d itformhelp.ru -d www.itformhelp.ru volumes: sqlite_data: