version: "3" services: admin_panel: container_name: admin_panel build: ./notice_bot_project command: gunicorn notice_bot.wsgi:application --bind 0.0.0.0:8000 env_file: - .env ports: - 8040:8000 volumes: - /home/telegram-bot/logs:/home/app/web/logs restart: always depends_on: postgres: condition: service_healthy postgres: image: postgres:15 volumes: - postgres_data:/var/lib/postgresql/data/ env_file: - .env restart: always healthcheck: test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ] interval: 10s timeout: 60s retries: 3 start_period: 10s volumes: postgres_data: