forked from reactivemarkets/reactive-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (100 loc) · 2.77 KB
/
docker-compose.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
---
version: "3"
services:
mariadb:
image: registry.gitlab.com/reactivemarkets/private-registry/mariadb-uat:${REACTIVE_TAG}
container_name: mariadb
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_INITDB_SKIP_TZINFO: 1
REACTIVE_SQL_PASS: test
networks:
- reactive-net
ports:
- 3306:3306
restart: on-failure
volumes:
- mysql-data:/var/lib/mysql
redis:
image: redis:5-alpine
command: redis-server /usr/local/etc/redis/redis.conf
container_name: redis
networks:
- reactive-net
restart: on-failure
volumes:
- ./conf/redis.conf:/usr/local/etc/redis/redis.conf:ro
refdata:
image: registry.gitlab.com/reactivemarkets/private-registry/toolbox-go:${REACTIVE_TAG}
command: refdata
container_name: refdata
depends_on:
- mariadb
- redis
environment:
REACTIVE_SQL_TYPE: mysql
REACTIVE_SQL_HOST: mariadb
REACTIVE_SQL_USER: reactiveuser
REACTIVE_SQL_PASS: test
REACTIVE_SQL_NAME: uatdb
REACTIVE_SQL_PORT: 3306
REACTIVE_REDIS_HOST: redis
REACTIVE_REDIS_PORT: 6379
networks:
- reactive-net
restart: on-failure
revalrates:
image: registry.gitlab.com/reactivemarkets/private-registry/toolbox-go:${REACTIVE_TAG}
command: revalrates
container_name: revalrates
depends_on:
- refdata
environment:
REACTIVE_REDIS_HOST: redis
REACTIVE_REDIS_PORT: 6379
networks:
- reactive-net
restart: on-failure
crossfix:
image: registry.gitlab.com/reactivemarkets/private-registry/matchbox-cpp:${REACTIVE_TAG}
entrypoint: /opt/reactivemarkets/matchbox/bin/matchbox-crossfix
command: ["-f", "/cpp/etc/matchbox-crossfix.conf"]
container_name: crossfix
depends_on:
- mariadb
environment:
REACTIVE_CONFIG_PATH: /cpp/etc
REACTIVE_SQL_TYPE: mysql
REACTIVE_SQL_HOST: mariadb
REACTIVE_SQL_USER: reactiveuser
REACTIVE_SQL_PASS: test
REACTIVE_SQL_NAME: uatdb
REACTIVE_SQL_PORT: 3306
ipc: host
networks:
- reactive-net
ports:
- 8285:8285
restart: on-failure
volumes:
- ./conf/crossfix.conf:/cpp/etc/matchbox-crossfix.conf:ro
- ./conf/crossfix-fix.conf:/cpp/etc/matchbox-crossfix-fix.conf:ro
clientpricer:
image: registry.gitlab.com/reactivemarkets/private-registry/toolbox-go:${REACTIVE_TAG}
command: ["clientpricer", "--config=/go/etc/clientpricer.conf"]
container_name: clientpricer
depends_on:
- revalrates
environment:
REACTIVE_REDIS_HOST: redis
REACTIVE_REDIS_PORT: 6379
ipc: host
networks:
- reactive-net
restart: on-failure
volumes:
- ./conf/clientpricer.conf:/go/etc/clientpricer.conf:ro
networks:
reactive-net:
volumes:
mysql-data: