Would you like to create a user account now? [Y/n]: y Email: username@domain.com Password: Repeat for confirmation: User created: username@domain.com Added to organization: sentry Cleaning up...
You're all done! Run the following command to get Sentry running:
docker-compose up -d
# docker images 检查安装结果 $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE symbolicator-cleanup-onpremise-local latest aa9f529b9bba 6 minutes ago 168MB sentry-cleanup-onpremise-local latest c8ce20926772 15 minutes ago 832MB snuba-cleanup-onpremise-local latest 899555aa0198 15 minutes ago 417MB sentry-onpremise-local latest 7b49912508f3 15 minutes ago 830MB getsentry/snuba latest c278520d8aa3 2 hours ago 415MB getsentry/sentry latest 5351ca5b79c7 3 hours ago 830MB getsentry/symbolicator latest 857ed4c4c3bb 15 hours ago 167MB getsentry/relay latest cf4553a1852c 15 hours ago 186MB busybox latest c7c37e472d31 3 days ago 1.22MB postgres 9.6 51e37c2850c7 3 weeks ago 200MB tianon/exim4 latest f077f7830685 3 weeks ago 176MB redis 5.0-alpine 58084f18c7ec 4 weeks ago 29.7MB alpine latest a24bb4013296 4 weeks ago 5.57MB nginx 1.16 dfcfd8e9a5d3 2 months ago 127MB confluentinc/cp-kafka 5.5.0 89e8e98718a8 2 months ago 598MB confluentinc/cp-zookeeper 5.5.0 124ff6469e3d 2 months ago 598MB yandex/clickhouse-server 19.17 f0fa9b979b63 4 months ago 435MB memcached 1.5-alpine 0dbf6b4c454b 4 months ago 9.19MB
# 创建自己的用户, 根据提示输入邮箱和密码 $ docker-compose run --rm web createuser Starting onpremise_smtp_1 ... done Starting onpremise_postgres_1 ... done Starting onpremise_redis_1 ... done Starting onpremise_memcached_1 ... done 09:49:39 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured. 09:49:46 [INFO] sentry.plugins.github: apps-not-configured Email: 1222@qq.com Password: Repeat for confirmation: Should this user be a superuser? [y/N]: y
生成 key 并设置
1 2 3 4
$ docker-compose run --rm web config generate-secret-key
# 编辑 .env 文件 # 添加到 .env 的 SENTRY_SECRET_KEY 里面
启动 Docker Compose
1 2 3 4
$ docker-compose up -d sentry_onpremise_smtp_1 is up-to-date ... Recreating sentry_onpremise_nginx_1 ... done
使用 docker ps 检查
1 2 3 4 5
$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7c86739e1904 nginx:1.16 "nginx -g 'daemon of…" 26 minutes ago Up 26 minutes 0.0.0.0:9080->80/tcp sentry_onpremise_nginx_1 ... a85aff3465f8 redis:5.0-alpine "docker-entrypoint.s…" 47 minutes ago Up 39 minutes 6379/tcp sentry_onpremise_redis_1
mail.backend:"smtp"# Use dummy if you want to disable email entirely mail.host:"smtpdm.aliyun.com" mail.port:25 mail.username:"automail@demo.domain.com" mail.password:"********" mail.use-tls:false # The email address to send on behalf of mail.from:"automail@demo.domain.com" # 备注: host 就是stmp服务地址 # port 端口和 tls对应 port 25 对应 tls false port 587 对应 tls true