forked from hummingbot/condor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
40 lines (39 loc) · 1.25 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
services:
condor:
image: hummingbot/condor:latest
container_name: condor-bot
restart: unless-stopped
environment:
TELEGRAM_TOKEN: your_bot_token
AUTHORIZED_USERS: 123,1234
env_file:
- .env
volumes:
# Persist bot data (user preferences, trading context, etc.)
- ./condor_bot_data.pickle:/app/condor_bot_data.pickle
# Mount servers config
- ./servers.yml:/app/servers.yml
# Mount routines for auto-discovery
- ./routines:/app/routines
network_mode: host
labels:
- "com.centurylinklabs.watchtower.enable=true"
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
# Only update containers with the watchtower label
WATCHTOWER_LABEL_ENABLE: "true"
# Check for updates every 5 minutes (300 seconds)
WATCHTOWER_POLL_INTERVAL: 300
# Remove old images after updating
WATCHTOWER_CLEANUP: "true"
# Telegram notifications
WATCHTOWER_NOTIFICATIONS: shoutrrr
WATCHTOWER_NOTIFICATION_URL: telegram://${TELEGRAM_TOKEN}@telegram?chats=${TELEGRAM_ALLOWED_IDS}
env_file:
- .env
command: --interval 300