2
0

feat(relay): Add Relay to onpremise installation (#421)

Co-Authored-By: Burak Yigit Kaya <byk@sentry.io>
This commit is contained in:
Radu Woinaroski
2020-04-24 14:31:59 +02:00
committed by GitHub
parent b2076eaeed
commit e97da7c56f
6 changed files with 111 additions and 2 deletions

View File

@@ -141,14 +141,15 @@ services:
- 'sentry-symbolicator:/data'
web:
<< : *sentry_defaults
ports:
- '9000:9000/tcp'
cron:
<< : *sentry_defaults
command: run cron
worker:
<< : *sentry_defaults
command: run worker
ingest-consumer:
<< : *sentry_defaults
command: run ingest-consumer --all-consumer-types
post-process-forwarder:
<< : *sentry_defaults
# Increase `--commit-batch-size 1` below to deal with high-load environments.
@@ -161,6 +162,28 @@ services:
args:
BASE_IMAGE: 'sentry-onpremise-local'
command: '"0 0 * * * gosu sentry sentry cleanup --days $SENTRY_EVENT_RETENTION_DAYS"'
nginx:
ports:
- '9000:80/tcp'
image: "nginx:1.16"
volumes:
- type: bind
read_only: true
source: ./nginx
target: /etc/nginx
depends_on:
- web
- relay
relay:
image: "us.gcr.io/sentryio/relay:latest"
command: 'run --config /etc/relay'
volumes:
- type: bind
source: ./relay
target: /etc/relay
depends_on:
- kafka
- redis
volumes:
sentry-data:
external: true