2
0

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.
This commit is contained in:
Burak Yigit Kaya 2019-12-04 02:29:01 +03:00 committed by GitHub
parent 6c0d7e48f0
commit 7b10fea284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,9 @@ services:
smtp: smtp:
<< : *restart_policy << : *restart_policy
image: tianon/exim4 image: tianon/exim4
volumes:
- 'sentry-smtp:/var/spool/exim4'
- 'sentry-smtp-log:/var/log/exim4'
memcached: memcached:
<< : *restart_policy << : *restart_policy
image: 'memcached:1.5-alpine' image: 'memcached:1.5-alpine'
@ -69,7 +72,9 @@ services:
ZOOKEEPER_LOG4J_ROOT_LOGLEVEL: 'WARN' ZOOKEEPER_LOG4J_ROOT_LOGLEVEL: 'WARN'
ZOOKEEPER_TOOLS_LOG4J_LOGLEVEL: 'WARN' ZOOKEEPER_TOOLS_LOG4J_LOGLEVEL: 'WARN'
volumes: 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: kafka:
<< : *restart_policy << : *restart_policy
depends_on: depends_on:
@ -84,7 +89,9 @@ services:
KAFKA_LOG4J_ROOT_LOGLEVEL: 'WARN' KAFKA_LOG4J_ROOT_LOGLEVEL: 'WARN'
KAFKA_TOOLS_LOG4J_LOGLEVEL: 'WARN' KAFKA_TOOLS_LOG4J_LOGLEVEL: 'WARN'
volumes: 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: clickhouse:
<< : *restart_policy << : *restart_policy
image: 'yandex/clickhouse-server:19.4' image: 'yandex/clickhouse-server:19.4'
@ -123,6 +130,8 @@ services:
args: args:
BASE_IMAGE: 'getsentry/symbolicator:latest' BASE_IMAGE: 'getsentry/symbolicator:latest'
command: '"55 23 * * * gosu symbolicator symbolicator cleanup"' command: '"55 23 * * * gosu symbolicator symbolicator cleanup"'
volumes:
- 'sentry-symbolicator:/data'
web: web:
<< : *sentry_defaults << : *sentry_defaults
ports: ports:
@ -156,3 +165,8 @@ volumes:
external: true external: true
sentry-symbolicator: sentry-symbolicator:
external: true external: true
sentry-secrets:
sentry-smtp:
sentry-zookeeper-log:
sentry-kafka-log:
sentry-smtp-log: