docker run --rm sentry config generate-secret-key
でSECRET_KEYを生成する- SECRET_KEYを環境変数にいれる
export SENTRY_SECRET_KEY="your generated secret key"
docker-compose up -d
でサービスあげる。docker-compose run -rm sentry sentry upgrade
で初期設定するdocker-compmse restart
で再起動- Go http://localhost:9000 and get sentry!
Last active
November 30, 2017 08:21
-
-
Save yuroyoro/9eabaed824fc4419c1ebb298bfd4b515 to your computer and use it in GitHub Desktop.
Sentryをdocker-composeで。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
redis: | |
image: redis | |
postgres: | |
image: postgres:9.6 | |
environment: | |
POSTGRES_USER: sentry | |
POSTGRES_PASSWORD: secret | |
volumes: | |
- 'data:/var/lib/postgresql/data' | |
sentry: | |
image: sentry | |
links: | |
- redis | |
- postgres | |
ports: | |
- 9000:9000 | |
environment: | |
SENTRY_SECRET_KEY: "${SENTRY_SECRET_KEY}" | |
SENTRY_POSTGRES_HOST: postgres | |
SENTRY_DB_USER: sentry | |
SENTRY_DB_PASSWORD: secret | |
SENTRY_REDIS_HOST: redis | |
volumes: | |
- 'files:/var/lib/sentry/files' | |
cron: | |
image: sentry | |
command: "sentry run cron" | |
links: | |
- redis | |
- postgres | |
environment: | |
SENTRY_SECRET_KEY: "${SENTRY_SECRET_KEY}" | |
SENTRY_POSTGRES_HOST: postgres | |
SENTRY_DB_USER: sentry | |
SENTRY_DB_PASSWORD: secret | |
SENTRY_REDIS_HOST: redis | |
volumes: | |
- 'files:/var/lib/sentry/files' | |
worker: | |
image: sentry | |
command: "sentry run worker" | |
links: | |
- redis | |
- postgres | |
environment: | |
SENTRY_SECRET_KEY: "${SENTRY_SECRET_KEY}" | |
SENTRY_POSTGRES_HOST: postgres | |
SENTRY_DB_USER: sentry | |
SENTRY_DB_PASSWORD: secret | |
SENTRY_REDIS_HOST: redis | |
volumes: | |
- 'files:/var/lib/sentry/files' | |
volumes: | |
data: | |
driver: 'local' | |
files: | |
driver: 'local' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment