From 53fbe2e3808fecc9be8c67967859fb6a2a78a031 Mon Sep 17 00:00:00 2001 From: Zack Wynne Date: Thu, 28 Jul 2022 07:59:23 +0000 Subject: [PATCH] (infra): adding Vitess to docker-compose.yml minds/engine#2357 --- docker-compose.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 7256a44ab..7f1c0b0d9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,7 @@ services: - rabbitmq - redis - pulsar + - vitess networks: - app volumes: @@ -173,6 +174,22 @@ services: - pulsardata:/pulsar/data - pulsarconf:/pulsar/conf + ## Vitess + + vitess: + image: registry.gitlab.com/minds/infrastructure/vitess/local:latest + # Local image wants to launch bash by default, so override with a continuous sleep + command: /bin/bash -c "cd /vt/local && ./101_initial_cluster.sh && while true; do echo sleeping... && sleep 30s; done" + networks: + - app + ports: + - 15000:15000 + - 15001:15001 + - 15991:15991 + - 15999:15999 + - 15306:15306 + volumes: + - vitess:/vt/vtdataroot ## METASCRAPER SERVER @@ -204,6 +221,7 @@ volumes: keys: pulsardata: pulsarconf: + vitess: networks: app: