2
0
This repository has been archived on 2020-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
sentry-onpremise/docker-compose.yml

73 lines
1.5 KiB
YAML
Raw Normal View History

# 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:
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:
restart: unless-stopped
2016-06-24 21:18:58 +02:00
image: tianon/exim4
2016-05-28 00:52:58 +02:00
memcached:
restart: unless-stopped
2016-05-28 00:52:58 +02:00
image: memcached:1.4
redis:
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:
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:
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:
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:
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