Update docker

This commit is contained in:
2026-01-11 07:47:40 +03:00
parent 56cdb353cb
commit 6b3d989b03
2 changed files with 47 additions and 0 deletions

View File

@@ -9,7 +9,29 @@ services:
restart: unless-stopped
volumes:
- ../:/app
# Force use of the container database
environment:
- DATABASE_URL=postgresql://marzban:marzban_pass@db:5432/marzban_bot
env_file:
- ../.env
ports:
- "8888:8888"
depends_on:
- db
db:
image: postgres:15-alpine
container_name: marzban_db
restart: unless-stopped
environment:
POSTGRES_USER: marzban
POSTGRES_PASSWORD: marzban_pass
POSTGRES_DB: marzban_bot
volumes:
- postgres_data:/var/lib/postgresql/data
# Expose port if you want to connect externally (e.g. DBeaver)
ports:
- "5432:5432"
volumes:
postgres_data: