-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
63 lines (57 loc) · 1.18 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
version: "3"
services:
envoy-proxy:
container_name: envoy-proxy
image: envoyproxy/envoy:v1.15.0
ports:
- 8081:51051
volumes:
- ./protos/proto.pb:/data/proto.pb
- ./envoy-proxy.yaml:/etc/envoy/envoy.yaml
depends_on:
- grpc_app
grpc_app:
container_name: grpc-app
build:
dockerfile: Dockerfile.app
context: .
depends_on:
- mongo
environment:
- DB_HOST=mongodb://mongo:27017
denny:
container_name: denny
build:
dockerfile: Dockerfile.denny
context: .
depends_on:
- mongo
ports:
- 8082:8080
environment:
- DB_HOST=mongodb://mongo:27017
# - GIN_MODE=release # Use this for production environment
grpc_gateway:
container_name: grpc-gateway
build:
dockerfile: Dockerfile.gateway
context: .
volumes:
- ./gateway:/app/src/gateway
depends_on:
- grpc_app
ports:
- 8080:8080
environment:
- GRPC_VERBOSITY=debug
- ENTITY_SERVER_HOST=grpc_app:50051
mongo:
container_name: mongo
image: mongo:latest
volumes:
- mongo:/data/db
ports:
- 27017:27017
volumes:
mongo:
envoy_proxy: