-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose.nats.yaml
85 lines (81 loc) · 2.34 KB
/
docker-compose.nats.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
version: "3.8"
services:
traefik:
image: traefik:v2.4
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
ports:
- "11633:80" # Changed this line
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
tracetest:
labels:
- "traefik.enable=true"
- "traefik.http.routers.tracetest.rule=Host(`localhost`)"
- "traefik.http.services.tracetest.loadbalancer.server.port=11633"
deploy:
replicas: 3
restart: unless-stopped
image: kubeshop/tracetest:${TAG:-latest}
extra_hosts:
- "host.docker.internal:host-gateway"
build:
context: .
volumes:
- type: bind
source: ./local-config/tracetest.config.nats.yaml
target: /app/tracetest.yaml
- type: bind
source: ./local-config/tracetest.provision.yaml
target: /app/provisioning.yaml
expose:
- 11633
command: --provisioning-file /app/provisioning.yaml
healthcheck:
test: ["CMD", "wget", "--spider", "localhost:11633"]
interval: 1s
timeout: 3s
retries: 60
depends_on:
postgres:
condition: service_healthy
environment:
TRACETEST_DEV: ${TRACETEST_DEV}
TRACETEST_TESTPIPELINES_TRIGGEREXECUTE_ENABLED: ${TRACETEST_TESTPIPELINES_TRIGGEREXECUTE_ENABLED}
TRACETEST_TESTPIPELINES_TRACEFETCH_ENABLED: ${TRACETEST_TESTPIPELINES_TRACEFETCH_ENABLED}
TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED: ${TRACETEST_DATASTOREPIPELINES_TESTCONNECTION_ENABLED}
postgres:
image: postgres:15.2
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-contrib:0.59.0
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "55679:55679"
- "4317:4317"
- "8888:8888"
command:
- "--config"
- "/otel-local-config.yaml"
volumes:
- ./local-config/collector.config.yaml:/otel-local-config.yaml
depends_on:
- tracetest
nats:
image: nats:2.10-alpine
ports:
- "4222:4222" # connecting
- "8222:8222" # reporting server