feat: add docker compose entry for drainer service (#504)

This commit is contained in:
Nishant Joshi
2023-02-07 13:06:29 +05:30
committed by GitHub
parent 0239c422b6
commit 19b01d4378

View File

@ -213,3 +213,26 @@ services:
- "3200" # tempo
- "4317" # otlp grpc
restart: unless-stopped
hyperswitch-drainer:
image: rust:1.65
command: cargo run --bin drainer -- -f ./config/docker_compose.toml
working_dir: /app
deploy:
replicas: ${DRAINER_INSTANCE_COUNT:-1}
networks:
- router_net
profiles:
- full_kv
volumes:
- ./:/app
- cargo_cache:/cargo_cache
- cargo_build_cache:/cargo_build_cache
environment:
- CARGO_TARGET_DIR=/cargo_build_cache
- OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector:4317
restart: unless-stopped
depends_on:
hyperswitch-server:
condition: service_healthy
labels:
logs: "promtail"