This commit is contained in:
2026-02-13 03:09:19 +05:00
commit 2204b615bc
13 changed files with 620 additions and 0 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
services:
bot:
build: .
container_name: telegram_bot
restart: always
env_file:
- .env
environment:
- DB_HOST=db
- BOT_TOKEN=${BOT_TOKEN}
depends_on:
- db
volumes:
- .:/app
db:
image: postgres:15-alpine
container_name: bot_db
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
volumes:
- pg_data:/var/lib/postgresql/data
ports:
- "5433:5432"
volumes:
pg_data: