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