-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (47 loc) · 1.32 KB
/
docker-compose.yaml
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
version: '3'
services:
redis:
image: "redis:5.0.3-alpine"
expose: ["6379"]
ports: ["6379:6379"]
user-server:
depends_on: ["redis"]
build:
context: .
dockerfile: ./user-server/Dockerfile
ports: ["50001:50000"]
expose: ["50000"]
environment:
REDIS_HOST: "redis"
record-server:
depends_on: ["redis", "user-server"]
build:
context: .
dockerfile: ./record-server/server/Dockerfile
ports: ["50002:50000"]
expose: ["50000"]
environment:
REDIS_PORT: 6379
REDIS_HOST: "redis"
USERS_SERVICE_HOST: "user-server"
USERS_SERVICE_PORT: 50000
poll-summary-server:
depends_on: ["redis", "user-server", "record-server"]
build:
context: .
dockerfile: ./poll-summary-server/server/Dockerfile
ports: ["50003:50000"]
expose: ["50000"]
environment:
REDIS_PORT: 6379
REDIS_HOST: "redis"
USERS_SERVICE_HOST: "user-server"
USERS_SERVICE_PORT: 50000
RECORD_SERVICE_HOST: "record-server"
RECORD_SERVICE_PORT: 50000
envoy:
image: envoyproxy/envoy:v1.9.1
volumes:
- ./envoy/envoy.yaml:/etc/envoy/envoy.yaml
command: ["/usr/local/bin/envoy", "-c", "/etc/envoy/envoy.yaml", "-l", "trace", "--log-path", "/tmp/envoy_info.log"]
ports: [ "9999:9999", "8100:8100" ]