1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 17:56:53 +02:00

add sentry

This commit is contained in:
kev 2019-01-11 14:35:28 +08:00
parent f987a21c73
commit 15f622bbd0
3 changed files with 87 additions and 0 deletions

View File

@ -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

17
sentry/README.md Normal file
View File

@ -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

69
sentry/docker-compose.yml Normal file
View File

@ -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