-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (31 loc) · 991 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
32 lines (31 loc) · 991 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
services:
db:
image: postgres:17-alpine
ports:
- 5432:5432
env_file:
- ./.env
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_INITDB_ARGS: -E UTF8
volumes:
- ./scripts/healthchecks:/healthchecks
- ${DB_VOLUME_DIR}/postgres17:/var/lib/postgresql/data:rw
- ${DB_VOLUME_DIR}/backup:/backup:rw
healthcheck:
test: /healthchecks/postgres.sh
interval: "5s"
otel-collector:
image: otel/opentelemetry-collector-contrib
volumes:
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml
ports:
- 1888:1888 # pprof extension
- 8888:8888 # Prometheus metrics exposed by the Collector
- 8889:8889 # Prometheus exporter metrics
- 13133:13133 # health_check extension
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP http receiver
- 55679:55679 # zpages extension