forked from nephel/microservice-app-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
73 lines (68 loc) · 1.73 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
version: "3"
services:
frontend:
build: ./frontend
image: frontend
environment:
PORT: 8080
AUTH_API_ADDRESS: http://auth-api:8081
TODOS_API_ADDRESS: http://todos-api:8082
ELASTIC_APM_SERVER_URL: ${SERVER}
ports:
- 8080:8080
depends_on:
- auth-api
- todos-api
- users-api
auth-api:
build: ./auth-api
image: auth-api
environment:
AUTH_API_PORT: 8081
JWT_SECRET: myfancysecret
USERS_API_ADDRESS: http://users-api:8083
ELASTIC_APM_SECRET_TOKEN: "${TOKEN}"
ELASTIC_APM_SERVER_URL: "${SERVER}"
ELASTIC_APM_LOG_FILE: "stdout"
ELASTIC_APM_LOG_LEVEL: "debug"
depends_on:
- users-api
todos-api:
build: ./todos-api
image: todos-api
environment:
TODO_API_PORT: 8082
JWT_SECRET: myfancysecret
REDIS_HOST: redis-queue
REDIS_PORT: 6379
REDIS_CHANNEL: log_channel
ELASTIC_APM_SECRET_TOKEN: "${TOKEN}"
ELASTIC_APM_SERVER_URL: "${SERVER}"
ELASTIC_APM_LOG_LEVEL: "debug"
DEBUG: todos-api:*
DEBUG: express:*
depends_on:
- redis-queue
users-api:
build: ./users-api
image: users-api
environment:
SERVER_PORT: 8083
JWT_SECRET: myfancysecret
ELASTIC_APM_SECRET_TOKEN: "${TOKEN}"
ELASTIC_APM_SERVER_URL: "${SERVER}"
ELASTIC_APM_LOG_LEVEL: "DEBUG"
log-message-processor:
build: ./log-message-processor
image: log-message-processor
environment:
REDIS_HOST: redis-queue
REDIS_PORT: 6379
REDIS_CHANNEL: log_channel
ELASTIC_APM_SECRET_TOKEN: "${TOKEN}"
ELASTIC_APM_SERVER_URL: "${SERVER}"
ELASTIC_APM_DEBUG: "True"
depends_on:
- redis-queue
redis-queue:
image: redis