diff --git a/.dockerignore b/.dockerignore index 2850987..96ad777 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,3 +7,4 @@ README.md *.tar docker-compose.yml docker-compose.yml.example +data/ diff --git a/.gitignore b/.gitignore index b5b95e5..5be26a3 100644 --- a/.gitignore +++ b/.gitignore @@ -66,3 +66,4 @@ target/ .python-version *.tar +data/ diff --git a/docker-compose.yml.example b/docker-compose.yml.example index 8da63c3..d2b0ecd 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -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