Install Redis
using the below command
docker run -d --name sentry-redis redis
Install Postgres using the below command
docker run -d --name sentry-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=sentry postgres
Generate a secret key using the below command
docker run --rm sentry config generate-secret-key
Upgrade database using the below command. Note change <secret-key>
with your secret-key
generated in the above command
docker run -it --rm -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry upgrade
Install sentry server using the below command
docker run -d --name my-sentry -p 9000:9000 -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-redis:redis --link sentry-postgres:postgres sentry
Add cron and worker using the below command
docker run -d --name sentry-cron -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry run cron
docker run -d --name sentry-worker-1 -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-postgres:postgres --link sentry-redis:redis sentry run worker
You can add multiple workers using the above command, change the name like sentry-worker-2
Add a superuser using the below command
docker run -it --rm -e SENTRY_SECRET_KEY='<secret-key>' --link sentry-redis:redis --link sentry-postgres:postgres sentry createuser
Login to your superuser using the below link
http://<PUBLIC IP ADDRESS>:9000