-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
118 lines (112 loc) · 3.53 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
108
109
110
111
112
113
114
115
116
117
118
version: "3.8"
services:
exchange-back-end:
container_name: exchange-back-end
image: felipewind/exchange-back-end:1.0
build:
context: ./exchange-back-end/
dockerfile: ./src/main/docker/Dockerfile.jvm
ports:
- 8090:8090
networks:
- fix-trading-simulator-net
depends_on:
- postgresql-qfj
environment:
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgresql-qfj:5432/postgres?currentSchema=exchange
- QUARKUS_DATASOURCE_USERNAME=postgres
- QUARKUS_DATASOURCE_PASSWORD=postgres
- QUICKFIX=[default],
[session],
BeginString=FIX.4.4,
SenderCompID=EXEC,
TargetCompID=BANZAI,
ConnectionType=acceptor,
StartTime=00:00:00,
EndTime=00:00:00,
SocketAcceptPort=9880,
ScreenLogShowHeartBeats=Y,
JdbcStoreMessagesTableName=messages,
JdbcStoreSessionsTableName=sessions,
JdbcLogHeartBeats=Y,
JdbcLogIncomingTable=messages_log_incoming,
JdbcLogOutgoingTable=messages_log_outgoing,
JdbcLogEventTable=event_log,
JdbcSessionIdDefaultPropertyValue=not_null,
AllowedRemoteAddresses=127.0.0.1\,172.0.0.2\,172.0.0.3\,broker-back-end
broker-back-end:
container_name: broker-back-end
image: felipewind/broker-back-end:1.0
build:
context: ./broker-back-end
dockerfile: ./src/main/docker/Dockerfile.jvm
ports:
- 8080:8080
networks:
- fix-trading-simulator-net
depends_on:
- postgresql-qfj
environment:
- QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://postgresql-qfj:5432/postgres?currentSchema=broker
- QUARKUS_DATASOURCE_USERNAME=postgres
- QUARKUS_DATASOURCE_PASSWORD=postgres
- QUICKFIX=[default],
[session],
BeginString=FIX.4.4,
SenderCompID=BANZAI,
TargetCompID=EXEC,
ConnectionType=initiator,
StartTime=00:00:00,
EndTime=00:00:00,
ReconnectInterval=5,
HeartBtInt=30,
SocketConnectHost=exchange-back-end,
SocketConnectPort=9880,
ScreenLogShowHeartBeats=Y,
JdbcStoreMessagesTableName=messages,
JdbcStoreSessionsTableName=sessions,
JdbcLogHeartBeats=Y,
JdbcLogIncomingTable=messages_log_incoming,
JdbcLogOutgoingTable=messages_log_outgoing,
JdbcLogEventTable=event_log,
JdbcSessionIdDefaultPropertyValue=not_null
postgresql-qfj:
image: postgres
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
ports:
- 5432:5432
networks:
- fix-trading-simulator-net
volumes:
- ./init-exchange.sql:/docker-entrypoint-initdb.d/init-exchange.sql
- ./init-broker.sql:/docker-entrypoint-initdb.d/init-broker.sql
exchange-front-end:
container_name: exchange-front-end
image: felipewind/exchange-front-end:1.0
build:
context: ./exchange-front-end/
dockerfile: ./Dockerfile
ports:
- 90:80
networks:
- fix-trading-simulator-net
depends_on:
- exchange-back-end
broker-front-end:
container_name: broker-front-end
image: felipewind/broker-front-end:1.0
build:
context: ./broker-front-end/
dockerfile: ./Dockerfile
ports:
- 80:80
networks:
- fix-trading-simulator-net
depends_on:
- broker-back-end
networks:
fix-trading-simulator-net:
driver: bridge