-
Notifications
You must be signed in to change notification settings - Fork 12
sentry
Dongwon Kim edited this page Aug 16, 2017
·
10 revisions
- docker에 권한을 추가하면 sudo는 필요 없다.
- /var/lib/docker를 미리 다른 디스크로 마운트해놓자.
git clone https://github.com/getsentry/onpremise.git
cd onpremise
make build
- Peripheral
docker run --detach --name sentry-redis redis:3.2-alpine
docker run --detach --name sentry-postgres --env POSTGRES_PASSWORD=secret --env POSTGRES_USER=sentry postgres:9.5
docker run --detach --name sentry-smtp tianon/exim4- Database upgrade
docker run \
--detach \
--rm \
--link sentry-redis:redis \
--link sentry-postgres:postgres \
--link sentry-smtp:smtp \
--env SENTRY_SECRET_KEY=secret \
--rm -it \
sentry-onpremise upgrade- Config
diff --git a/config.yml b/config.yml
index 8a08445..7b037e1 100644
--- a/config.yml
+++ b/config.yml
@@ -1,3 +1,7 @@
+system.admin-email: 'your@email.com'
+system.secret-key: 'yourpassword'
+system.url-prefix: 'http://your.domain.com[:portnumber]'
+
# While a lot of configuration in Sentry can be changed via the UI, for all
# new-style config (as of 8.0) you can also declare values here in this file
# to enforce defaults or to ensure they cannot be changed via the UI. For more
@@ -15,6 +19,7 @@
# mail.use-tls: false
# The email address to send on behalf of
# mail.from: 'root@localhost'
+mail.from: 'sentry-name@custom-email.com'
# If you'd like to configure email replies, enable this.
# mail.enable-replies: false- Services
docker run \
--detach \
--rm \
--link sentry-redis:redis \
--link sentry-postgres:postgres \
--link sentry-smtp:smtp \
--env SENTRY_SECRET_KEY=secret \
--name sentry-worker \
sentry-onpremise run worker
docker run \
--detach \
--rm \
--link sentry-redis:redis \
--link sentry-postgres:postgres \
--link sentry-smtp:smtp \
--env SENTRY_SECRET_KEY=secret \
--name sentry-cron \
sentry-onpremise run cron
docker run \
--detach \
--rm \
--link sentry-redis:redis \
--link sentry-postgres:postgres \
--env SENTRY_SECRET_KEY=secret \
--name sentry-web \
--publish [원하는포트]:9000 \
sentry-onpremise run web- admin 계정이 정상적으로 만들어지지 않는 문제가 있다.
- docker에서 sentry를 직접 호출하여 admin(superuser 계정을 만들자)
docker exec -it sentry-web /bin/bashsentry createuser --email youremail@addr --password yourpasswd --superuser
- docker에서 sentry를 직접 호출하여 admin(superuser 계정을 만들자)