2025-05-19 18:07:33 +05:00

36 lines
738 B
YAML

version: "3.8"
services:
bot:
build: .
container_name: pyrogram_bot
restart: unless-stopped
env_file:
- .env_prod
depends_on:
postgres:
condition: service_started
redis:
condition: service_started
postgres:
image: postgres:13
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: jkjklkjqpnn34234
ports:
- "9151:5432"
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
- ./sql_scripts/create_table.sql:/docker-entrypoint-initdb.d/create_table.sql
redis:
image: redis:latest
container_name: redis
restart: unless-stopped