e21d9a3972
* declare sentry volumes external * move SENTRY_SECRET_KEY to .env file (not in git repo) * ignore docker-compose.override.yml to allow extending
67 lines
1.2 KiB
YAML
67 lines
1.2 KiB
YAML
# NOTE: This docker-compose.yml is meant to be just an example of how
|
|
# you could accomplish this on your own. It is not intended to work in
|
|
# all use-cases and must be adapted to fit your needs. This is merely
|
|
# a guideline.
|
|
|
|
# See docs.getsentry.com/on-premise/server/ for full
|
|
# instructions
|
|
|
|
version: '3.4'
|
|
|
|
x-defaults: &defaults
|
|
restart: unless-stopped
|
|
build: .
|
|
depends_on:
|
|
- redis
|
|
- postgres
|
|
- memcached
|
|
- smtp
|
|
env_file: .env
|
|
environment:
|
|
SENTRY_MEMCACHED_HOST: memcached
|
|
SENTRY_REDIS_HOST: redis
|
|
SENTRY_POSTGRES_HOST: postgres
|
|
SENTRY_EMAIL_HOST: smtp
|
|
volumes:
|
|
- sentry-data:/var/lib/sentry/files
|
|
|
|
|
|
services:
|
|
smtp:
|
|
restart: unless-stopped
|
|
image: tianon/exim4
|
|
|
|
memcached:
|
|
restart: unless-stopped
|
|
image: memcached:1.4
|
|
|
|
redis:
|
|
restart: unless-stopped
|
|
image: redis:3.2-alpine
|
|
|
|
postgres:
|
|
restart: unless-stopped
|
|
image: postgres:9.5
|
|
volumes:
|
|
- sentry-postgres:/var/lib/postgresql/data
|
|
|
|
web:
|
|
<<: *defaults
|
|
ports:
|
|
- '9000:9000'
|
|
|
|
cron:
|
|
<<: *defaults
|
|
command: run cron
|
|
|
|
worker:
|
|
<<: *defaults
|
|
command: run worker
|
|
|
|
|
|
volumes:
|
|
sentry-data:
|
|
external: true
|
|
sentry-postgres:
|
|
external: true
|