sha256:32e2055d7f0eae91f2af0623a3a1299ac560f7991f863b196e62fe5c1775e4c0
Last pushed
8 months by amatthewshow
Type
Compose
Manifest digest
sha256:32e2055d7f0eae91f2af0623a3a1299ac560f7991f863b196e62fe5c1775e4c0
services:
postgres:
image: postgres:15-alpine
container_name: marzban-postgres
restart: unless-stopped
environment:
- POSTGRES_DB=${POSTGRES_MARZBAN_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=${POSTGRES_PORT}
volumes:
- postgres-data:/var/lib/postgresql/data/
networks:
- marzban-net
ports:
- "5432:5432"
marzban:
image: gozargah/marzban:latest
container_name: marzban
restart: unless-stopped
environment:
- UVICORN_HOST=0.0.0.0
- UVICORN_PORT=8000
- SECRET_KEY=super_long_random_secret
- SQLALCHEMY_DATABASE_URL=postgresql+asyncpg://{POSTGRES_USER}:{POSTGRES_PASSWORD}@{POSTGRES_HOST}:{POSTGRES_PORT}/{POSTGRES_MARZBAN_DB}
- SUDO_USERNAME=admin
- SUDO_PASSWORD=strong_admin_password
- XRAY_JSON=/var/lib/marzban/xray_config.json
depends_on:
- postgres
volumes:
- marzban-data:/var/lib/marzban
expose:
- "8000"
networks:
- marzban-net
nginx:
build:
dockerfile: Dockerfile
context: ./nginx
image: amatthewshow/tiny-vpn-reverse-proxy:alpha-1
container_name: marzban-nginx
restart: unless-stopped
# depends_on:
# - marzban
ports:
- "80:80"
networks:
- marzban-net
networks:
marzban-net:
driver: bridge
volumes:
postgres-data:
marzban-data:
# docker compose buiid --push
# docker compose publish --with-env amatthewshow/tiny-vpn-compose:alpha-1
# docker compose -f oci://docker.io/amatthewshow/tiny-vpn-compose:alpha-1 up
docker compose -f oci://amatthewshow/tiny-vpn-compose:alpha-1 upUse the above command to pull and run the Compose file. Learn more.
The PostgreSQL object-relational database system provides reliability and data integrity.
Pulls
1B+
Stars
15012
Last Updated
20 days