-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
108 lines (98 loc) · 2.42 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: '3.5'
services:
consul:
image: consul:latest
command: agent -server -ui -node=server1 -bootstrap-expect=1 -client=0.0.0.0
ports:
- "8500:8500"
- "8600:8600/udp"
networks:
- consul-net
gateway-service:
restart: on-failure
build: gateway-service/.
image: webclient-showcase/gateway-service:1
ports:
- "8000:8000"
networks:
- consul-net
environment:
- CONSUL_HOST=consul
- CONSUL_PORT=8500
otp-service:
restart: on-failure
build: otp-service/.
image: webclient-showcase/otp-service:1
volumes:
- C://logs:/home/otp/logs # TODO: using "C://" makes it os-dependent...
ports:
- "8001:8001"
networks:
- consul-net
environment:
- CONSUL_HOST=consul
- CONSUL_PORT=8500
- POSTGRES_HOST=postgres
- POSTGRES_DB=test
- POSTGRES_USER=kmandalas
- POSTGRES_PASSWORD=passepartout
- NOTIFICATION_SERVICE_HOST=notification-service
- NOTIFICATION_SERVICE_PORT=8005
- NUMBER-INFORMATION_SERVICE_HOST=number-information-service
- NUMBER-INFORMATION_SERVICE_PORT=8006
- JAEGER_HOST=jaeger
customer-service:
restart: on-failure
build: customer-service/.
image: webclient-showcase/customer-service:1
ports:
- "8002:8002"
networks:
- consul-net
environment:
- CONSUL_HOST=consul
- CONSUL_PORT=8500
- POSTGRES_HOST=postgres
- POSTGRES_DB=test
- POSTGRES_USER=kmandalas
- POSTGRES_PASSWORD=passepartout
- JAEGER_HOST=jaeger
notification-service:
restart: on-failure
build: notification-service/.
image: webclient-showcase/notification-service:1
ports:
- "8005:8005"
networks:
- consul-net
number-information-service:
restart: on-failure
build: number-information-service/.
image: webclient-showcase/number-information-service:1
ports:
- "8006:8006"
networks:
- consul-net
postgres:
image: postgres:latest
restart: always
networks:
- consul-net
environment:
POSTGRES_DB: test
POSTGRES_USER: kmandalas
POSTGRES_PASSWORD: passepartout
ports:
- "5432:5432"
jaeger:
image: jaegertracing/all-in-one:1.8
ports:
- "16686:16686"
- "9411:9411"
networks:
- consul-net
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
networks:
consul-net:
driver: bridge