-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-swarm.yml
128 lines (120 loc) · 2.68 KB
/
docker-compose-swarm.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
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
128
version: '3'
networks:
logging:
volumes:
elasticsearch-data:
services:
arbitrage:
image: soulgarden/kickex-bot:1.0.62
environment:
CFG_PATH: /conf.local.json
stop_signal: SIGINT
volumes:
- ./conf/conf.remote.json:/conf.local.json
- ./storage:/storage
command: [ "/bin/bot", "arbitrage" ]
deploy:
restart_policy:
condition: none
networks:
- logging
logging:
driver: "fluentd"
options:
fluentd-async-connect: "true"
tag: "docker.kickex-bot.arbitrage.prod"
spread:
image: soulgarden/kickex-bot:1.0.62
environment:
CFG_PATH: /conf.local.json
stop_signal: SIGINT
volumes:
- ./conf/conf.remote.json:/conf.local.json
- ./storage:/storage
networks:
- logging
logging:
driver: "fluentd"
options:
fluentd-async-connect: "true"
tag: "docker.kickex-bot.spread.prod"
buy:
image: soulgarden/kickex-bot:1.0.62
environment:
CFG_PATH: /conf.local.json
stop_signal: SIGINT
volumes:
- ./conf/conf.remote.json:/conf.local.json
- ./storage:/storage
command: [ "/bin/bot", "buy" ]
networks:
- logging
logging:
driver: "fluentd"
options:
fluentd-async-connect: "true"
tag: "docker.kickex-bot.buy.prod"
elasticsearch:
image: elasticsearch:7.13.3
environment:
cluster.name: elasticsearch
discovery.type: single-node
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: "-Xms128m -Xmx256m"
deploy:
mode: replicated
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
resources:
limits:
memory: 1000MB
cpus: "0.5"
networks:
- logging
logging:
driver: "fluentd"
options:
fluentd-async-connect: "true"
tag: "docker.kickex-bot.elasticsearch.prod"
kibana:
image: kibana:7.13.3
depends_on:
- elasticsearch
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
deploy:
mode: replicated
update_config:
parallelism: 1
delay: 10s
resources:
limits:
memory: 500MB
cpus: "0.5"
ports:
- "5601:5601"
networks:
- logging
fluentd:
image: soulgarden/kickex-bot:fluentd
depends_on:
- elasticsearch
deploy:
mode: replicated
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: on-failure
resources:
limits:
memory: 200MB
cpus: "0.5"
ports:
- "24224:24224"
- "24224:24224/udp"
networks:
- logging