mirror of
https://github.com/bitinflow/getsentry-onpremise.git
synced 2026-03-13 13:35:51 +00:00
Docker compose 3.4 (#105)
* Update README.md * docker-compose: use version:3.4 * readme fix
This commit is contained in:
committed by
Matt Robenolt
parent
fa39a377b7
commit
4c00924afe
@@ -6,22 +6,30 @@
|
||||
# See docs.getsentry.com/on-premise/server/ for full
|
||||
# instructions
|
||||
|
||||
version: '2'
|
||||
services:
|
||||
base:
|
||||
restart: unless-stopped
|
||||
build: .
|
||||
environment:
|
||||
# Run `docker-compose run web config generate-secret-key`
|
||||
# to get the SENTRY_SECRET_KEY value.
|
||||
# SENTRY_SECRET_KEY: ''
|
||||
SENTRY_MEMCACHED_HOST: memcached
|
||||
SENTRY_REDIS_HOST: redis
|
||||
SENTRY_POSTGRES_HOST: postgres
|
||||
SENTRY_EMAIL_HOST: smtp
|
||||
volumes:
|
||||
- ./data/sentry:/var/lib/sentry/files
|
||||
version: '3.4'
|
||||
|
||||
x-defaults: &defaults
|
||||
restart: unless-stopped
|
||||
build: .
|
||||
depends_on:
|
||||
- redis
|
||||
- postgres
|
||||
- memcached
|
||||
- smtp
|
||||
|
||||
environment:
|
||||
# Run `docker-compose run web config generate-secret-key`
|
||||
# to get the SENTRY_SECRET_KEY value.
|
||||
SENTRY_SECRET_KEY: ''
|
||||
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
|
||||
@@ -38,35 +46,22 @@ services:
|
||||
restart: unless-stopped
|
||||
image: postgres:9.5
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
- sentry-postgres:/var/lib/postgresql/data
|
||||
|
||||
web:
|
||||
restart: unless-stopped
|
||||
extends: base
|
||||
links:
|
||||
- redis
|
||||
- postgres
|
||||
- memcached
|
||||
- smtp
|
||||
<<: *defaults
|
||||
ports:
|
||||
- '9000:9000'
|
||||
|
||||
cron:
|
||||
restart: unless-stopped
|
||||
extends: base
|
||||
<<: *defaults
|
||||
command: run cron
|
||||
links:
|
||||
- redis
|
||||
- postgres
|
||||
- memcached
|
||||
- smtp
|
||||
|
||||
worker:
|
||||
restart: unless-stopped
|
||||
extends: base
|
||||
<<: *defaults
|
||||
command: run worker
|
||||
links:
|
||||
- redis
|
||||
- postgres
|
||||
- memcached
|
||||
- smtp
|
||||
|
||||
|
||||
volumes:
|
||||
sentry-data:
|
||||
sentry-postgres:
|
||||
|
||||
Reference in New Issue
Block a user