2016-11-11 05:15:24 +01:00
|
|
|
# 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.
|
|
|
|
|
2016-06-28 21:03:38 +02:00
|
|
|
# See docs.getsentry.com/on-premise/server/ for full
|
|
|
|
# instructions
|
2016-05-28 00:52:58 +02:00
|
|
|
|
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
base:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-05-28 00:52:58 +02:00
|
|
|
build: .
|
|
|
|
environment:
|
|
|
|
# Run `docker-compose run web config generate-secret-key`
|
2016-05-28 02:00:35 +02:00
|
|
|
# to get the SENTRY_SECRET_KEY value.
|
2016-05-28 01:46:50 +02:00
|
|
|
# SENTRY_SECRET_KEY: ''
|
|
|
|
SENTRY_MEMCACHED_HOST: memcached
|
|
|
|
SENTRY_REDIS_HOST: redis
|
|
|
|
SENTRY_POSTGRES_HOST: postgres
|
2016-06-24 21:18:58 +02:00
|
|
|
SENTRY_EMAIL_HOST: smtp
|
2016-05-28 01:44:34 +02:00
|
|
|
volumes:
|
2016-08-04 16:50:24 +02:00
|
|
|
- ./data/sentry:/var/lib/sentry/files
|
2016-05-28 00:52:58 +02:00
|
|
|
|
2016-06-24 21:18:58 +02:00
|
|
|
smtp:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-06-24 21:18:58 +02:00
|
|
|
image: tianon/exim4
|
|
|
|
|
2016-05-28 00:52:58 +02:00
|
|
|
memcached:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-05-28 00:52:58 +02:00
|
|
|
image: memcached:1.4
|
|
|
|
|
|
|
|
redis:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-06-24 21:18:58 +02:00
|
|
|
image: redis:3.2-alpine
|
2016-05-28 00:52:58 +02:00
|
|
|
|
|
|
|
postgres:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-05-28 00:52:58 +02:00
|
|
|
image: postgres:9.5
|
2016-08-03 18:21:59 +02:00
|
|
|
volumes:
|
|
|
|
- ./data/postgres:/var/lib/postgresql/data
|
2016-05-28 00:52:58 +02:00
|
|
|
|
|
|
|
web:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-05-28 00:52:58 +02:00
|
|
|
extends: base
|
|
|
|
links:
|
|
|
|
- redis
|
|
|
|
- postgres
|
|
|
|
- memcached
|
2016-06-24 21:18:58 +02:00
|
|
|
- smtp
|
2016-05-28 00:52:58 +02:00
|
|
|
ports:
|
|
|
|
- '9000:9000'
|
|
|
|
|
|
|
|
cron:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-05-28 00:52:58 +02:00
|
|
|
extends: base
|
2016-06-24 21:18:58 +02:00
|
|
|
command: run cron
|
2016-05-28 00:52:58 +02:00
|
|
|
links:
|
|
|
|
- redis
|
|
|
|
- postgres
|
|
|
|
- memcached
|
2016-06-24 21:18:58 +02:00
|
|
|
- smtp
|
2016-05-28 00:52:58 +02:00
|
|
|
|
|
|
|
worker:
|
2017-08-08 21:15:36 +02:00
|
|
|
restart: unless-stopped
|
2016-05-28 00:52:58 +02:00
|
|
|
extends: base
|
2016-06-24 21:18:58 +02:00
|
|
|
command: run worker
|
2016-05-28 00:52:58 +02:00
|
|
|
links:
|
|
|
|
- redis
|
|
|
|
- postgres
|
|
|
|
- memcached
|
2016-06-24 21:18:58 +02:00
|
|
|
- smtp
|