Skip to content

Instantly share code, notes, and snippets.

@jensens

jensens/buildout.cfg

Created Aug 13, 2018
Embed
What would you like to do?
Sentry on Docker to monitor Zope (for Andreas)
...
[instance]
...
eggs +=
raven
event-log-custom =
%import raven.contrib.zope
<logfile>
path ${buildout:directory}/var/instance.log
level WARNING
max-size 50mb
old-files 2
</logfile>
<sentry>
dsn SENTRY_DSN
level SENTRY_LEVEL
</sentry>
z2-log-level = CRITICAL
...
version: '2'
volumes:
pgdb:
services:
memcached:
restart: always
image: memcached:alpine
redis:
restart: always
image: redis:alpine
hostname: redis
postgres:
image: 'eeacms/postgres:9.5'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DBNAME: sentry
POSTGRES_DBUSER: sentry
POSTGRES_DBPASS: sentry
volumes:
- pgdb:/var/lib/postgresql/data
restart: always
sentry-web:
restart: always
image: sentry:8.22
hostname: sentry
ports:
- "YOURIP:9000:9000"
- "YOURIP:9001:9001"
depends_on:
- redis
- postgres
- memcached
- sentry-cron
- sentry-worker
links:
- postgres
- redis
- memcached
environment:
SENTRY_SECRET_KEY: "SENTRY_SHARED_SECRET_GENERATE_ME"
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: postgres
SENTRY_DB_PASSWORD: postgres
SENTRY_REDIS_HOST: redis
SENTRY_SERVER_EMAIL: some@email.mail
SENTRY_EMAIL_HOST: SET_MAILHOST_HERE
SENTRY_EMAIL_PORT: 587
SENTRY_EMAIL_USER: secretuser
SENTRY_EMAIL_PASSWORD: secretpassword
SENTRY_EMAIL_USE_TLS: 1
sentry-cron:
restart: always
image: sentry:9
hostname: sentry
command: "sentry run cron"
depends_on:
- redis
- postgres
- memcached
links:
- postgres
- redis
- memcached
environment:
SENTRY_SECRET_KEY: "SENTRY_SHARED_SECRET_GENERATE_ME"
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: postgres
SENTRY_DB_PASSWORD: postgres
SENTRY_REDIS_HOST: redis
SENTRY_SERVER_EMAIL: some@email.mail
SENTRY_EMAIL_HOST: SET_MAILHOST_HERE
SENTRY_EMAIL_PORT: 587
SENTRY_EMAIL_USER: secretuser
SENTRY_EMAIL_PASSWORD: secretpassword
SENTRY_EMAIL_USE_TLS: 1
sentry-worker:
restart: always
image: sentry:8.22
hostname: sentry
command: "sentry run worker"
depends_on:
- redis
- postgres
- memcached
links:
- postgres
- redis
- memcached
environment:
SENTRY_SECRET_KEY: "SENTRY_SHARED_SECRET_GENERATE_ME"
SENTRY_POSTGRES_HOST: postgres
SENTRY_DB_USER: postgres
SENTRY_DB_PASSWORD: postgres
SENTRY_REDIS_HOST: redis
SENTRY_SERVER_EMAIL: some@email.mail
SENTRY_EMAIL_HOST: SET_MAILHOST_HERE
SENTRY_EMAIL_PORT: 587
SENTRY_EMAIL_USER: secretuser
SENTRY_EMAIL_PASSWORD: secretpassword
SENTRY_EMAIL_USE_TLS: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.