-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yaml.dist
88 lines (82 loc) · 2.1 KB
/
docker-compose.yaml.dist
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
version: '3.5'
services:
writer:
build: '.'
container_name: go_crypto_bot
environment:
BOT_UUID: '{BOT_UUID_4_HERE}'
BOT_EXCHANGE: 'binance'
CLICKHOUSE_DSN: 'clickhouse:8123'
CLICKHOUSE_PASSWORD: '123456' # .docker/data/clickhouse-server/users.xml:63
DATABASE_DSN: 'root:go_crypto_bot@tcp(mysql:3306)/go_crypto_bot'
REDIS_DSN: 'redis:6379'
REDIS_PASSWORD: ''
BINANCE_API_KEY: '{BINANCE_API_KEY}'
BINANCE_API_SECRET: '{BINANCE_API_SECRET}'
BINANCE_API_DSN: 'https://testnet.binance.vision'
BINANCE_WS_DSN: 'wss://testnet.binance.vision/ws-api/v3'
BINANCE_STREAM_DSN: 'wss://stream.binance.com' #'wss://stream.binancefuture.com'
BYBIT_API_KEY: ''
BYBIT_API_SECRET: ''
BYBIT_API_DSN: ''
BYBIT_STREAM_DSN: ''
MC_DSN: "it should be your own capitalization service here"
networks:
- bot-net
ports:
- "8090:8080"
restart: always
depends_on:
- mysql
volumes:
- './:/go/src/app/dev'
mysql:
platform: linux/x86_64
image: mysql:5.7
restart: unless-stopped
ports:
- "3367:3306"
networks:
- bot-net
environment:
MYSQL_ROOT_PASSWORD: go_crypto_bot
MYSQL_DATABASE: go_crypto_bot
MYSQL_USER: go_crypto_bot
MYSQL_PASSWORD: go_crypto_bot
volumes:
- mysql-data:/var/lib/mysql
# Redis
redis:
image: redis:5.0.5-alpine
networks:
- bot-net
volumes:
- ./.docker/data/redis:/data:delegated
# ports:
# - 6379:6379
cap_add:
- SYS_TIME
restart: always
clickhouse:
image: clickhouse/clickhouse-server
volumes:
- clickhouse-data:/var/lib/clickhouse
- ./.docker/data/clickhouse-server:/etc/clickhouse-server
ports:
- "8002:9000"
- "9123:8123"
ulimits:
nproc: 65535
nofile:
soft: 262144
hard: 262144
networks:
- bot-net
networks:
bot-net:
driver: bridge
volumes:
mysql-data:
name: go_crypto_bot_mysql_data
clickhouse-data:
name: go_crypto_bot_clickhouse_data