-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
64 lines (62 loc) · 1.75 KB
/
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
services:
foo:
build:
context: "./"
ports:
- "8080:8080"
environment:
OTEL_SERVICE_NAME: "foo"
OTEL_RESOURCE_ATTRIBUTES: "service.version=alpha,deployment.environment=${USER}-local,host.name=${HOSTNAME},service.namespace=test,service.instance.id=B9B7E669-48A6-47C1-BCE4-F3B7AEF82754"
depends_on:
collector:
condition: service_healthy
flagd:
image: ghcr.io/open-feature/flagd:latest
ports:
- "8013:8013"
volumes:
- type: bind
source: ./
target: /etc/flagd/
command: ["start", "--uri", "file:/etc/flagd/flags.flagd.json"]
bar:
build:
context: "./"
environment:
OTEL_SERVICE_NAME: "app_bar"
depends_on:
collector:
condition: service_healthy
collector:
# https://github.com/open-telemetry/opentelemetry-collector-contrib
build:
context: .
dockerfile: ./Dockerfile.collector
hostname: collector
environment:
DD_API_KEY: ${DD_API_KEY}
ports:
# http
- "4318:4318"
# grpc
- "4317:4317"
# internal metrics: https://opentelemetry.io/docs/collector/internal-telemetry/#configure-internal-metrics
- "8888:8888"
# health check: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/extension/healthcheckextension/README.md
- "13133:13133"
- "55680:55680"
- "55679:55679"
volumes:
- type: bind
source: ./config.yaml
target: /etc/otelcol-contrib/config.yaml
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
read_only: true
# healthcheck:
# test: ["CMD", "/healthcheck"]
# interval: 5s
# timeout: 10s
# retries: 3
# start_period: 0s