generated from tdensmore/microservices-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
81 lines (75 loc) · 1.59 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
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
version: "3"
services:
web-ui:
build: ./web-ui
image: web-ui
environment:
PORT: 8080
AUTH_API_ADDRESS: http://auth-api:8081
TODOS_API_ADDRESS: http://todo-api:8082
ZIPKIN_URL: http://zipkin:9411/api/v2/spans
ports:
- 8080
depends_on:
- zipkin
- auth-api
- todo-api
- user-api
auth-api:
build: ./auth-api
image: auth-api
environment:
AUTH_API_PORT: 8081
JWT_SECRET: myfancysecret
USERS_API_ADDRESS: http://user-api:8083
ZIPKIN_URL: http://zipkin:9411/api/v2/spans
depends_on:
- zipkin
- user-api
ports:
- 8081
todo-api:
build: ./todo-api
image: todo-api
environment:
TODO_API_PORT: 8082
JWT_SECRET: myfancysecret
REDIS_HOST: redis-queue
REDIS_PORT: 6379
REDIS_CHANNEL: log_channel
ZIPKIN_URL: http://zipkin:9411/api/v2/spans
depends_on:
- zipkin
- redis-queue
ports:
- 8082
user-api:
build: ./user-api
image: user-api
environment:
SERVER_PORT: 8083
JWT_SECRET: myfancysecret
SPRING_ZIPKIN_BASE_URL: http://zipkin:9411
depends_on:
- zipkin
ports:
- 8083
log-processor:
build: ./log-processor
image: log-processor
environment:
REDIS_HOST: redis-queue
REDIS_PORT: 6379
REDIS_CHANNEL: log_channel
ZIPKIN_URL: http://zipkin:9411/api/v1/spans
depends_on:
- zipkin
- redis-queue
zipkin:
image: openzipkin/zipkin
ports:
- 9411
redis-queue:
image: redis:alpine
ports:
- 6379