-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.simple.yml
More file actions
55 lines (52 loc) · 1.05 KB
/
docker-compose.simple.yml
File metadata and controls
55 lines (52 loc) · 1.05 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
# REST API service
rest-api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "3001:3001"
volumes:
- .:/app
working_dir: /app
command: node rest-api/server.js
# GraphQL API service
graphql-api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "3002:3002"
volumes:
- .:/app
working_dir: /app
command: node graphql-api/server.js
# gRPC API service
grpc-api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "50051:50051"
volumes:
- .:/app
working_dir: /app
command: node grpc-api/server.js
# Test client
test-client:
build:
context: .
dockerfile: Dockerfile.client
volumes:
- .:/app
- ./results:/app/results
working_dir: /app
depends_on:
- rest-api
- graphql-api
- grpc-api
environment:
- REST_URL=http://rest-api:3001
- GRAPHQL_URL=http://graphql-api:3002/graphql
- GRPC_URL=grpc-api:50051
command: tail -f /dev/null