-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
52 lines (51 loc) · 1.17 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
marzban:
image: gozargah/marzban:v0.7.0
container_name: free_vpn_bot_marzban
restart: always
env_file: .env.marzban
command: bash -c "alembic upgrade head && python /code/marzban.py"
environment:
UVICORN_HOST: "marzban"
UVICORN_PORT: "8002"
YOUR_DOMAIN: ${DOMAIN}
ports:
- "0.0.0.0:8002:8002"
- "0.0.0.0:8443:8433"
- "0.0.0.0:2053:2053"
networks:
- free_vpn_bot
volumes:
- marz-storage:/code
- ./marzban.py:/code/marzban.py
- ./volumes/marzban:/var/lib/marzban
- ./volumes/marzban/xray_config.json:/code/xray_config.json:rw
- /etc/timezone:/etc/timezone:ro
logging:
driver: "json-file"
options:
max-size: "900k"
max-file: "10"
vpn_bot:
image: free_vpn_bot
container_name: free_vpn_bot
stop_signal: SIGINT
build:
context: .
working_dir: "/usr/src/app"
volumes:
- .:/usr/src/app
command: python3 -m bot
restart: always
env_file:
- ".env"
networks:
- free_vpn_bot
depends_on:
- marzban
networks:
free_vpn_bot:
driver: bridge
volumes:
marz-storage:
driver: local