2
0

Mount the required volume

This commit is contained in:
Matt Robenolt 2016-05-27 16:44:34 -07:00
parent 2715ff2c3c
commit 113ded789c
3 changed files with 11 additions and 0 deletions

View File

@ -7,3 +7,4 @@ README.md
*.tar
docker-compose.yml
docker-compose.yml.example
data/

1
.gitignore vendored
View File

@ -66,3 +66,4 @@ target/
.python-version
*.tar
data/

View File

@ -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