-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 902 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (38 loc) · 902 Bytes
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
version: '3.9'
networks:
otel-example:
volumes:
otel-flask-app-cache:
otel-db:
services:
otel-flask-app:
restart: "no"
build:
context: ./
dockerfile: ./Dockerfile
ports:
- "9000:9000"
volumes:
- "./:/app"
- "otel-flask-app-cache:/root/.cache/pip"
environment:
PYTHONPATH: /app
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4317
networks:
otel-example:
working_dir: "/app"
command: ["./run.sh"]
otel-collector:
image: otel/opentelemetry-collector-contrib
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
environment:
- DD_SITE=datadoghq.eu
env_file:
- ./.env
networks:
otel-example: