From 15f622bbd0a69d94e39b112764b496f898fe06d0 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 11 Jan 2019 14:35:28 +0800 Subject: [PATCH] add sentry --- README.md | 1 + sentry/README.md | 17 ++++++++++ sentry/docker-compose.yml | 69 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 sentry/README.md create mode 100644 sentry/docker-compose.yml diff --git a/README.md b/README.md index 231d017..3a04ef0 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,7 @@ A collection of delicious docker recipes. - [ ] hub - [ ] node-firefox - [x] standalone-firefox +- [x] sentry - [x] amancevice/superset - [x] v2ray/official :cn: - [x] centurylink/watchtower diff --git a/sentry/README.md b/sentry/README.md new file mode 100644 index 0000000..7435559 --- /dev/null +++ b/sentry/README.md @@ -0,0 +1,17 @@ +sentry +====== + +[Sentry][1] is cross-platform application monitoring, with a focus on error reporting. + +```bash +$ docker-compose up -d +$ docker-compose exec sentry sentry upgrade +Would you like to create a user account now? [Y/n]: y +Email: root@easypi.pro +Password: ****** +Repeat for confirmation: ****** +Should this user be a superuser? [y/N]: y +User created: root@easypi.pro +``` + +[1]: https://github.com/getsentry/sentry diff --git a/sentry/docker-compose.yml b/sentry/docker-compose.yml new file mode 100644 index 0000000..63d17f0 --- /dev/null +++ b/sentry/docker-compose.yml @@ -0,0 +1,69 @@ +version: '3' + +services: + + sentry: + image: 'sentry:latest' + ports: + - '9000:9000' + environment: + SENTRY_SECRET_KEY: 'theSentrySecretKey' + SENTRY_POSTGRES_HOST: 'postgres' + SENTRY_POSTGRES_PORT: '5432' + SENTRY_DB_NAME: 'sentry' + SENTRY_DB_USER: 'sentry' + SENTRY_DB_PASSWORD: 'sentry' + SENTRY_REDIS_HOST: 'redis' + depends_on: + - 'redis' + - 'postgres' + restart: always + + sentry_worker: + image: 'sentry:latest' + command: "sentry run worker" + environment: + SENTRY_SECRET_KEY: 'theSentrySecretKey' + SENTRY_POSTGRES_HOST: 'postgres' + SENTRY_POSTGRES_PORT: '5432' + SENTRY_DB_NAME: 'sentry' + SENTRY_DB_USER: 'sentry' + SENTRY_DB_PASSWORD: 'sentry' + SENTRY_REDIS_HOST: 'redis' + depends_on: + - 'redis' + - 'postgres' + restart: always + + sentry_cron: + image: 'sentry:latest' + command: "sentry run cron" + environment: + SENTRY_SECRET_KEY: 'theSentrySecretKey' + SENTRY_POSTGRES_HOST: 'postgres' + SENTRY_POSTGRES_PORT: '5432' + SENTRY_DB_NAME: 'sentry' + SENTRY_DB_USER: 'sentry' + SENTRY_DB_PASSWORD: 'sentry' + SENTRY_REDIS_HOST: 'redis' + depends_on: + - 'redis' + - 'postgres' + restart: always + + redis: + image: 'redis:alpine' + command: --save 900 1 + volumes: + - ./data/redis:/data + restart: always + + postgres: + image: 'postgres:alpine' + volumes: + - ./data/postgres:/var/lib/postgresql/data + environment: + POSTGRES_USER: 'sentry' + POSTGRES_PASSWORD: 'sentry' + POSTGRES_DB: 'sentry' + restart: always