From 19b01d43786a0fd5e409b5eaa42b80c33ee29574 Mon Sep 17 00:00:00 2001 From: Nishant Joshi Date: Tue, 7 Feb 2023 13:06:29 +0530 Subject: [PATCH] feat: add docker compose entry for drainer service (#504) --- docker-compose.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1597ed19a8..fb748b8d33 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -212,4 +212,27 @@ services: ports: - "3200" # tempo - "4317" # otlp grpc - restart: unless-stopped \ No newline at end of file + 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" \ No newline at end of file