-
Notifications
You must be signed in to change notification settings - Fork 73
/
docker-compose.yaml
128 lines (120 loc) · 2.91 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3.2"
services:
tracetest:
container_name: tracetest
image: kubeshop/tracetest
build:
context: .
args:
VERSION: dev
ENV: docker-compose
volumes:
- type: bind
source: ./local-config/config.tests.yaml
target: /app/config.yaml
ports:
- 8080:8080
depends_on:
postgres:
condition: service_healthy
jaeger:
condition: service_healthy
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
healthcheck:
test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"
interval: 1s
timeout: 5s
retries: 60
otel-collector:
image: otel/opentelemetry-collector:0.54.0
ports:
- "55679:55679"
- "4317:4317"
- "8888:8888"
command:
- "--config"
- "/otel-local-config.yaml"
volumes:
- "./local-config/collector.config.yaml:/otel-local-config.yaml"
environment:
- JAEGER_ENDPOINT=jaeger:14250
- LIGHTSTEP_TOKEN=<PLACE-YOUR-TOKEN-HERE>
depends_on:
jaeger:
condition: service_healthy
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "16686:16686"
healthcheck:
test: ["CMD", "wget", "--spider", "localhost:16686"]
interval: 1s
timeout: 3s
retries: 60
cache:
image: redis:6
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 1s
timeout: 3s
retries: 60
queue:
image: rabbitmq:3.9
ports:
- 5672:5672
- 15672:15672
healthcheck:
test: rabbitmq-diagnostics -q check_running
interval: 1s
timeout: 5s
retries: 60
demo-api:
image: kubeshop/demo-pokemon-api:latest
pull_policy: always
environment:
REDIS_URL: cache
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres?schema=public
RABBITMQ_HOST: queue
POKE_API_BASE_URL: https://pokeapi.co/api/v2
JAEGER_HOST: jaeger
JAEGER_PORT: 6832
NPM_RUN_COMMAND: api
depends_on:
postgres:
condition: service_healthy
cache:
condition: service_healthy
queue:
condition: service_healthy
jaeger:
condition: service_healthy
demo-rpc:
image: kubeshop/demo-pokemon-api:latest
pull_policy: always
environment:
REDIS_URL: cache
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres?schema=public
RABBITMQ_HOST: queue
POKE_API_BASE_URL: https://pokeapi.co/api/v2
JAEGER_HOST: jaeger
JAEGER_PORT: 6832
NPM_RUN_COMMAND: rpc
depends_on:
postgres:
condition: service_healthy
cache:
condition: service_healthy
queue:
condition: service_healthy
jaeger:
condition: service_healthy