From b505eca261793907ffbe6bfbde8e3ecbf65f61b3 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Fri, 27 May 2016 15:52:58 -0700 Subject: [PATCH] Add docker-compose.yml example --- .dockerignore | 3 +++ README.md | 10 +++++++- docker-compose.yml.example | 47 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml.example diff --git a/.dockerignore b/.dockerignore index 08827d5..2850987 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,9 @@ .git +.gitignore .dockerignore Makefile README.md *.pyc *.tar +docker-compose.yml +docker-compose.yml.example diff --git a/README.md b/README.md index 8bd998f..637a432 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ -# onpremise \ No newline at end of file +# Sentry On-Premise + +Official bootstrap for running your own [Sentry](https://getsentry.com/) with [Docker](https://www.docker.com/). + +## Resources + + * [Documentation](https://docs.getsentry.com/on-premise/server/) + * [Bug Tracker](https://github.com/getsentry/onpremise) + * [IRC](irc://chat.freenode.net/sentry) (chat.freenode.net, #sentry) diff --git a/docker-compose.yml.example b/docker-compose.yml.example new file mode 100644 index 0000000..8da63c3 --- /dev/null +++ b/docker-compose.yml.example @@ -0,0 +1,47 @@ +# See docs.getsentry.com/on-premise/server for instructions + +version: '2' +services: + base: + build: . + environment: + # Run `docker-compose run web config generate-secret-key` + # to get the SENTRY_SECRE_KEY value. + # - SENTRY_SECRET_KEY= + - SENTRY_MEMCACHED_HOST=memcached + - SENTRY_REDIS_HOST=redis + - SENTRY_POSTGRES_HOST=postgres + + memcached: + image: memcached:1.4 + + redis: + image: redis:3.0-alpine + + postgres: + image: postgres:9.5 + + web: + extends: base + links: + - redis + - postgres + - memcached + ports: + - '9000:9000' + + cron: + extends: base + command: celery beat + links: + - redis + - postgres + - memcached + + worker: + extends: base + command: celery worker + links: + - redis + - postgres + - memcached