diff --git a/docker-compose.yml b/docker-compose.yml index b3e15a7..9cbb331 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ x-sentry-defaults: &sentry_defaults environment: SNUBA: 'http://snuba-api:1218' volumes: - - 'sentry-data:/var/lib/sentry/files' + - 'sentry-data:/data' x-snuba-defaults: &snuba_defaults << : *restart_policy depends_on: diff --git a/install.sh b/install.sh index b602ded..6700db3 100755 --- a/install.sh +++ b/install.sh @@ -130,6 +130,10 @@ until $(docker-compose run --rm clickhouse clickhouse-client -h clickhouse --que done; echo "" +echo "Migrating file storage..." +docker run --rm -it -v sentry-data:/data alpine ash -c \ + "mkdir -p /tmp/files; mv /data/* /tmp/files/; mv /tmp/files /data/files" + cleanup echo "" diff --git a/sentry/config.example.yml b/sentry/config.example.yml index 5cff314..d31cf2e 100644 --- a/sentry/config.example.yml +++ b/sentry/config.example.yml @@ -55,7 +55,9 @@ system.secret-key: '!!changeme!!' filestore.backend: 'filesystem' filestore.options: - location: '/var/lib/sentry/files' + location: '/data/files' +dsym.cache-path: '/data/dsym-cache' +releasefile.cache-path: '/data/releasefile-cache' # filestore.backend: 's3' # filestore.options: