fix(data): Use /data
for persisting files and file caches (#295)
Moves sentry-data volume to /data mount point and sets all file-based storage settings to /data/files, /data/dsym-cache etc. accordingly. See 50ac550666/src/sentry/options/defaults.py (L45-L54)
This commit is contained in:
parent
7b10fea284
commit
89e8053c40
@ -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:
|
||||
|
@ -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 ""
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user