Skip to content

Commit 4856cc8

Browse files
authored
Merge branch 'main' into feature/DD-343
2 parents 1a1608b + 37e30fd commit 4856cc8

File tree

40 files changed

+8994
-1000
lines changed

40 files changed

+8994
-1000
lines changed

docker-compose.test.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
services:
2+
gsy-node:
3+
container_name: gsy-node
4+
build:
5+
context: .
6+
dockerfile: ./gsy-node/Dockerfile
7+
ports:
8+
- "9944:9944"
9+
- "9933:9933"
10+
environment:
11+
- RUST_LOG=info
12+
- CARGO_HOME=/var/www/gsy-node/.cargo
13+
- ORDERBOOK_SERVICE_URL=http://gsy-orderbook:8080
14+
15+
gsy-orderbook:
16+
container_name: gsy-orderbook
17+
build:
18+
context: .
19+
dockerfile: ./gsy-orderbook-service/Dockerfile
20+
depends_on:
21+
- mongodb
22+
ports:
23+
- "8080:8080"
24+
environment:
25+
- RUST_LOG=info
26+
- APPLICATION_HOST=0.0.0.0
27+
- APPLICATION_PORT=8080
28+
- DATABASE_NAME=orderbook
29+
- DATABASE_HOST=mongodb
30+
- DATABASE_URL_SCHEME=mongodb
31+
- DATABASE_USERNAME=gsy
32+
- DATABASE_PASSWORD=gsy
33+
- NODE_URL=gsy-node:9944
34+
- SCHEDULER_INTERVAL=900
35+
healthcheck:
36+
test: ["CMD", "curl", "-f", "http://localhost:8080/health_check"]
37+
interval: 10s
38+
timeout: 5s
39+
retries: 5
40+
start_period: 30s
41+
42+
gsy-matching-engine:
43+
container_name: gsy-matching-engine
44+
build:
45+
dockerfile: ./gsy-matching-engine/Dockerfile
46+
depends_on:
47+
gsy-orderbook:
48+
condition: service_healthy
49+
gsy-node:
50+
condition: service_started
51+
working_dir: /var/www/matching-engine
52+
53+
mongodb:
54+
image: mongo:5.0
55+
container_name: mongodb
56+
ports:
57+
- "27017:27017"
58+
volumes:
59+
- ./mongodb-data:/data/db
60+
environment:
61+
- MONGO_INITDB_ROOT_USERNAME=gsy
62+
- MONGO_INITDB_ROOT_PASSWORD=gsy
63+
64+
e2e-tests:
65+
container_name: e2e-tests
66+
build:
67+
context: .
68+
dockerfile: ./e2e-tests/Dockerfile
69+
depends_on:
70+
gsy-node:
71+
condition: service_started
72+
gsy-orderbook:
73+
condition: service_healthy
74+
gsy-matching-engine:
75+
condition: service_started
76+
networks:
77+
- default

0 commit comments

Comments
 (0)