premise安装:https://github.com/getsentry/onpremise
cp sentry/config.example.yml
sentry/config.yml
cp sentry/sentry.conf.example.py sentry/sentry.conf.py
执行install.sh
安装完成后打开:ip:9000端口即可
docker安装参考:https://hub.docker.com/_/sentry/
How to setup a full Sentry instance
- Start a Redis container
- Start a Postgres container
- Generate a new secret key to be shared by all
sentry
containers. This value will then be used as the SENTRY_SECRET_KEY
environment variable.
生成的密码:
n2er7#1^&&=v*w%%jvwg46wlv!59vt^*^qgid_fn1(e#mhe*t!
- If this is a new database, you'll need to run
upgrade
Note: the -it
is important as the initial upgrade will prompt to create an initial user and will fail without it
- Now start up Sentry server -p 9000:9000 启动端口映射
- The default config needs a celery beat and celery workers, start as many workers as you need (each with a unique name)
Port mapping
If you'd like to be able to access the instance from the host without the container's IP, standard port mappings can be used. Just add -p 8080:9000
to the docker run
arguments and then access either http://localhost:8080
or http://host-ip:8080
in a browser.
Configuring the initial user
If you did not create a superuser during upgrade
, use the following to create one: