-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
40 lines (38 loc) · 1.04 KB
/
compose.yaml
File metadata and controls
40 lines (38 loc) · 1.04 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
services:
fixengine:
build:
context: .
image: axum-matching-engine-fixengine
container_name: axum-matching-engine-fixengine
ports:
- "8080:8080" # Port should match the one used FixEngine
environment:
- JAVA_OPTS=-Xms512m -Xmx1024m
command: ["java", "-cp", "app.jar:quickfixj-all-2.3.1.jar", "exchange.core2.core.FixEngine"]
deploy:
resources:
limits:
memory: 1g
cpus: "1.0"
networks:
- axum-network
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/" ]
interval: 30s
timeout: 10s
retries: 5
axumengine:
build:
context: .
image: axum-matching-engine-server
container_name: axum-matching-engine-server
environment:
- JAVA_OPTS=-Xms512m -Xmx1024m
ports:
- "9090:9090" # Expose a port for external communication
command: ["java", "-jar", "app.jar", "exchange.core2.core.AxumApi", "exchange.core2.core.Axum"]
networks:
- axum-network
networks:
axum-network:
driver: bridge