Files
telegram_bot_vpn/docker-compose.yml
2026-02-13 03:04:47 +05:00

31 lines
537 B
YAML

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: