-
Notifications
You must be signed in to change notification settings - Fork 67
/
docker-compose.yaml
61 lines (58 loc) 路 1.55 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
version: '3'
services:
app:
image: quick-start-nodejs
extra_hosts:
- "host.docker.internal:host-gateway"
build: ./api
ports:
- "8080:8080"
tracetest:
restart: unless-stopped
image: kubeshop/tracetest:${TAG:-latest}
platform: linux/amd64
ports:
- 11633:11633
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- type: bind
source: ./tracetest/tracetest.config.yaml
target: /app/tracetest.yaml
- type: bind
source: tracetest/tracetest-provision.yaml
target: /app/provision.yaml
command: --provisioning-file /app/provision.yaml
healthcheck:
test: ["CMD", "wget", "--spider", "localhost:11633"]
interval: 1s
timeout: 3s
retries: 60
depends_on:
postgres:
condition: service_healthy
otel-collector:
condition: service_started
environment:
TRACETEST_DEV: ${TRACETEST_DEV}
postgres:
image: postgres:14
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
healthcheck:
test: pg_isready -U "$$POSTGRES_USER" -d "$$POSTGRES_DB"
interval: 1s
timeout: 5s
retries: 60
otel-collector:
image: otel/opentelemetry-collector-contrib:0.92.0
restart: unless-stopped
command:
- "--config"
- "/otel-local-config.yaml"
environment:
INSTANA_OTLP_GRPC_ENDPOINT: ${INSTANA_OTLP_GRPC_ENDPOINT}
INSTANA_API_KEY: ${INSTANA_API_KEY}
volumes:
- ./tracetest/collector.config.yaml:/otel-local-config.yaml