template-elysia/docker-compose.services.yaml
2025-01-21 12:18:03 +06:00

53 lines
1.4 KiB
YAML

services:
tracing:
image: jaegertracing/all-in-one:latest
environment:
COLLECTOR_ZIPKIN_HOST_PORT: 9411
COLLECTOR_OTLP_ENABLED: true
ports:
- "6831:6831/udp" # jaeger-agent UDP accept compact thrift protocol
- "6832:6832/udp" # jaeger-agent UDP accept binary thrift protocol
- "5778:5778" # jaeger-agent HTTP serve configs
- "16686:16686" # jaeger-query HTTP serve frontend/API
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "14250:14250" # jaeger-collector gRPC
- "14268:14268" # jaeger-collector HTTP accept spans
- "14269:14269" # jaeger-collector HTTP admin
- "9411:9411" # zipkin-collector HTTP accept spans
db:
image: postgres:latest
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "${DB_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
minio:
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 30s
timeout: 20s
retries: 3
networks:
api-network:
driver: bridge
volumes:
postgres_data:
minio_data: