forked from ChainBuff/open-sol-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
127 lines (120 loc) · 2.86 KB
/
docker-compose.yaml
File metadata and controls
127 lines (120 loc) · 2.86 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
services:
wallet-tracker:
build:
context: .
dockerfile: app/wallet-tracker/Dockerfile
restart: unless-stopped
volumes:
- ./config.toml:/app/config.toml:ro
- ./app/wallet-tracker/wallet_tracker:/app/wallet_tracker:ro
- ./logs/wallet-tracker:/app/logs
environment:
- PYTHONPATH=/app/libs:/app
command: ["wallet_tracker.main"]
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
networks:
- backend
trading:
build:
context: .
dockerfile: app/trading/Dockerfile
restart: unless-stopped
volumes:
- ./config.toml:/app/config.toml:ro
- ./app/trading/trading:/app/trading:ro
- ./logs/trading:/app/logs
environment:
- PYTHONPATH=/app/libs:/app
command: ["trading.main"]
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
networks:
- backend
bot:
build:
context: .
dockerfile: app/tg-bot/Dockerfile
restart: unless-stopped
volumes:
- ./config.toml:/app/config.toml:ro
- ./app/tg-bot/tg_bot:/app/tg_bot:ro
- ./logs/tg-bot:/app/logs
environment:
- PYTHONPATH=/app/libs:/app
command: ["tg_bot.main"]
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
wallet-tracker:
condition: service_started
trading:
condition: service_started
networks:
- backend
# price-monitor:
# build:
# context: .
# dockerfile: app/price-monitor/Dockerfile
# restart: unless-stopped
# volumes:
# - ./config.toml:/app/config.toml:ro
# - ./logs/price-monitor:/app/logs
# environment:
# - DISPLAY=:99
# shm_size: 2gb
# cap_add:
# - SYS_ADMIN
# depends_on:
# redis:
# condition: service_healthy
# networks:
# - backend
mysql:
image: docker.io/library/mysql:8.0
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=solana_trade_bot
volumes:
- mysql_data:/var/lib/mysql
- ./mysql:/docker-entrypoint-initdb.d
ports:
- "3307:3306"
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-proot"]
interval: 5s
timeout: 3s
retries: 3
networks:
- backend
redis:
image: docker.io/library/redis:7.2-alpine
restart: unless-stopped
volumes:
- redis_data:/data
command: redis-server --appendonly yes
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 3
networks:
- backend
networks:
backend:
driver: bridge
volumes:
mysql_data:
redis_data: