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

70 lines
1.3 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: '3.4'
x-defaults: &defaults
restart: unless-stopped
build:
context: .
args:
IMAGE: ${IMAGE}
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
2016-05-28 00:52:58 +02:00
services:
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
image: memcached:1.5-alpine
2016-05-28 00:52:58 +02:00
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:
- sentry-postgres:/var/lib/postgresql/data
2016-05-28 00:52:58 +02:00
web:
<<: *defaults
2016-05-28 00:52:58 +02:00
ports:
- '9000:9000'
cron:
<<: *defaults
2016-06-24 21:18:58 +02:00
command: run cron
2016-05-28 00:52:58 +02:00
worker:
<<: *defaults
2016-06-24 21:18:58 +02:00
command: run worker
volumes:
sentry-data:
external: true
sentry-postgres:
external: true