Basic conversion of official Docker deployment guide [1] to Docker Compose. Should work for Sentry 8.x.
[1] | https://docs.sentry.io/server/installation/docker/ |
Basic conversion of official Docker deployment guide [1] to Docker Compose. Should work for Sentry 8.x.
[1] | https://docs.sentry.io/server/installation/docker/ |
export SECRET=`docker run --rm sentry config generate-secret-key` | |
docker-compose up -d redis postgres smtp | |
docker-compose run --rm web sentry upgrade | |
docker-compose up -d |
redis: | |
image: redis | |
postgres: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=sentry | |
- POSTGRES_USER=sentry | |
volumes: | |
- /var/lib/postgresql/data | |
smtp: | |
image: tianon/exim4 | |
web: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=$SECRET | |
links: | |
- redis | |
- postgres | |
- smtp | |
ports: | |
- 80:9000 | |
command: run web | |
cron: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=$SECRET | |
links: | |
- redis | |
- postgres | |
- smtp | |
command: run cron | |
worker: | |
image: sentry | |
environment: | |
- SENTRY_SECRET_KEY=$SECRET | |
links: | |
- redis | |
- postgres | |
- smtp | |
command: run worker |