Mount the required volume
This commit is contained in:
parent
2715ff2c3c
commit
113ded789c
@ -7,3 +7,4 @@ README.md
|
||||
*.tar
|
||||
docker-compose.yml
|
||||
docker-compose.yml.example
|
||||
data/
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -66,3 +66,4 @@ target/
|
||||
.python-version
|
||||
|
||||
*.tar
|
||||
data/
|
||||
|
@ -4,6 +4,7 @@ version: '2'
|
||||
services:
|
||||
base:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# Run `docker-compose run web config generate-secret-key`
|
||||
# to get the SENTRY_SECRE_KEY value.
|
||||
@ -11,18 +12,24 @@ services:
|
||||
- SENTRY_MEMCACHED_HOST=memcached
|
||||
- SENTRY_REDIS_HOST=redis
|
||||
- SENTRY_POSTGRES_HOST=postgres
|
||||
volumes:
|
||||
- ./data:/var/lib/sentry/files
|
||||
|
||||
memcached:
|
||||
image: memcached:1.4
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:3.0-alpine
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
image: postgres:9.5
|
||||
restart: unless-stopped
|
||||
|
||||
web:
|
||||
extends: base
|
||||
restart: unless-stopped
|
||||
links:
|
||||
- redis
|
||||
- postgres
|
||||
@ -33,6 +40,7 @@ services:
|
||||
cron:
|
||||
extends: base
|
||||
command: celery beat
|
||||
restart: unless-stopped
|
||||
links:
|
||||
- redis
|
||||
- postgres
|
||||
@ -41,6 +49,7 @@ services:
|
||||
worker:
|
||||
extends: base
|
||||
command: celery worker
|
||||
restart: unless-stopped
|
||||
links:
|
||||
- redis
|
||||
- postgres
|
||||
|
Reference in New Issue
Block a user