From 7b10fea284a520ca86f754c36ea4ed12ecc57858 Mon Sep 17 00:00:00 2001 From: Burak Yigit Kaya Date: Wed, 4 Dec 2019 02:29:01 +0300 Subject: [PATCH] fix(volumes): Fix creation of random volumes at every run (#291) Plugs all the holes (VOLUME defs) in the images we use so they at least persist across runs/restarts for things like random logs or SMTP spool. This also fixes symbolicator_cleanup service not having access to symbolicator data. --- docker-compose.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index fd68260..b3e15a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -47,6 +47,9 @@ services: smtp: << : *restart_policy image: tianon/exim4 + volumes: + - 'sentry-smtp:/var/spool/exim4' + - 'sentry-smtp-log:/var/log/exim4' memcached: << : *restart_policy image: 'memcached:1.5-alpine' @@ -69,7 +72,9 @@ services: ZOOKEEPER_LOG4J_ROOT_LOGLEVEL: 'WARN' ZOOKEEPER_TOOLS_LOG4J_LOGLEVEL: 'WARN' volumes: - - 'sentry-zookeeper:/var/lib/zookeeper' + - 'sentry-zookeeper:/var/lib/zookeeper/data' + - 'sentry-zookeeper-log:/var/lib/zookeeper/log' + - 'sentry-secrets:/etc/zookeeper/secrets' kafka: << : *restart_policy depends_on: @@ -84,7 +89,9 @@ services: KAFKA_LOG4J_ROOT_LOGLEVEL: 'WARN' KAFKA_TOOLS_LOG4J_LOGLEVEL: 'WARN' volumes: - - 'sentry-kafka:/var/lib/kafka' + - 'sentry-kafka:/var/lib/kafka/data' + - 'sentry-kafka-log:/var/lib/kafka/log' + - 'sentry-secrets:/etc/kafka/secrets' clickhouse: << : *restart_policy image: 'yandex/clickhouse-server:19.4' @@ -123,6 +130,8 @@ services: args: BASE_IMAGE: 'getsentry/symbolicator:latest' command: '"55 23 * * * gosu symbolicator symbolicator cleanup"' + volumes: + - 'sentry-symbolicator:/data' web: << : *sentry_defaults ports: @@ -156,3 +165,8 @@ volumes: external: true sentry-symbolicator: external: true + sentry-secrets: + sentry-smtp: + sentry-zookeeper-log: + sentry-kafka-log: + sentry-smtp-log: