This is how to deploy Sentry with docker-compose on server.
This is manual deployment exemple, but I have habit to use Ansible to do that.
- Docker
- docker-compose
$ ssh root@yourserver "mkdir -p /opt/sentry/"
Upload docker-compose.yml on the server:
$ scp docker-compose.yml root@yourserver:/opt/sentry/docker-compose.yml
$ ssh root@yourserver
# cd /opt/sentry/
# docker-compose up -d sentry_redis sentry_postgres
# docker-compose run --rm wait_sentry_postgres
# docker-compose run --rm wait_sentry_redis
# docker-compose run --rm sentry sentry upgrade --noinput
# docker-compose run --rm sentry sentry createuser \
--email [email protected] \
--password password \
--superuser --no-input
# docker-compose up -d sentry cron worker
$ ssh root@yourserver
# cd /opt/sentry/
Update Docker image version in docker-compose.yml
.
# docker-compose pull
# docker-compose -d
$ ssh root@yourserver
# cd /opt/sentry/
# docker-compose down
Delete database content:
# rm -rf /var/lib/sentry-postgresql/