forked from botifyx-bots/File-store-Pro
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (57 loc) Β· 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (57 loc) Β· 1.79 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# ================================================
# File-Store-Pro β docker-compose.yml
# Platform: Local Machine / VPS
# Made by: botifyx-bots | @BotifyX_Pro_Botz
# ------------------------------------------------
# β οΈ Edit config.py with your values BEFORE running.
# ------------------------------------------------
# Usage:
# docker-compose up -d start in background
# docker-compose logs -f view live logs
# docker-compose down stop everything
# docker-compose restart bot restart only the bot
# ================================================
version: "3.9"
services:
# ββ The Bot βββββββββββββββββββββββββββββββββββ
bot:
build:
context: .
dockerfile: Dockerfile
container_name: file-store-pro
restart: unless-stopped
command: python main.py
ports:
- "5010:5010" # PORT from config.py
volumes:
- ./sessions:/app/sessions # Persist Pyrogram session files
- ./bot.log:/app/bot.log # Persist logs
depends_on:
mongo:
condition: service_healthy
networks:
- botnet
# ββ MongoDB (Local / VPS only) ββββββββββββββββ
# β οΈ Comment out this entire block if using MongoDB Atlas
# (set DB_URI in config.py to your Atlas URI instead)
mongo:
image: mongo:6.0
container_name: file-store-mongo
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- botnet
volumes:
mongo_data:
networks:
botnet:
driver: bridge