How did I install Sentry to Debian via Docker in 2018?

Step 1

docker run \
	--detach \
	--env POSTGRES_PASSWORD= <password> \
	--env POSTGRES_USER=sentry \
	--name sentry-postgres \
	--restart always \
	postgres:9.5

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#postgresql

Step 2

docker run \
	--name sentry-redis \
	--detach \
	--restart always\
	 redis:3.2-alpine

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#redis

Step 3

docker run \
	--detach \
	--name sentry-smtp \
	--restart always \
	tianon/exim4

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#outboundemail

Step 4

docker run --rm sentry-onpremise config generate-secret-key

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#secretkey

Step 5

docker run \
	--env SENTRY_SECRET_KEY='<the key from the step 4>' \
	--env SENTRY_USE_SSL=True \
	--env SENTRY_SINGLE_ORGANIZATION=0 \
	--link sentry-postgres:postgres \
	--link sentry-redis:redis \
	--link sentry-smtp:smtp \
	sentry-onpremise upgrade

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#migrations

Step 6

docker run \
	--detach \
	--env SENTRY_SECRET_KEY='<the key from the step 4>' \
	--env SENTRY_SINGLE_ORGANIZATION=0 \
	--env SENTRY_USE_SSL=True \
	--link sentry-postgres:postgres \
	--link sentry-redis:redis \
	--link sentry-smtp:smtp \
	--name sentry-web-01 \
	--publish 9000:4586 \
	--restart always \
	sentry-onpremise run web

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#webservice

Step 7

docker run \
	--detach \
	--env SENTRY_SECRET_KEY='<the key from the step 4>' \
	--env SENTRY_SINGLE_ORGANIZATION=0 \
	--env SENTRY_USE_SSL=True \
	--link sentry-postgres:postgres \
	--link sentry-redis:redis \
	--link sentry-smtp:smtp \
	--name sentry-worker-01 \
	--restart always \
	sentry-onpremise run worker

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#backgroundworkers

Step 8

docker run \
	--detach \
	--env SENTRY_SECRET_KEY='<the key from the step 4>' \
	--env SENTRY_SINGLE_ORGANIZATION=0 \
	--env SENTRY_USE_SSL=True \
	--link sentry-postgres:postgres \
	--link sentry-redis:redis \
	--link sentry-smtp:smtp \
	--name sentry-cron \
	--restart always \
	sentry-onpremise run cron

web.archive.org/web/20200929051205/https://blog.neversyn.com/install-sentry-with-docker-easily#cronprocess

Step 9

Step 10

See also: How to install Sentry to Debian via Docker in 2024?