{"user":"library","name":"sentry","namespace":"library","repository_type":"image","status":1,"status_description":"active","description":"DEPRECATED; https://develop.sentry.dev/self-hosted/","is_private":false,"is_automated":false,"star_count":664,"pull_count":124926512,"last_updated":"2019-10-19T09:22:56.635131Z","last_modified":"2024-10-16T13:48:34.145251Z","date_registered":"2014-11-15T08:14:25.988256Z","collaborator_count":0,"affiliation":null,"hub_user":"stackbrew","has_starred":false,"full_description":"# **DEPRECATION NOTICE**\n\nThis image is deprecated in favor of the full installation explained over at [Self-Hosted Sentry Docs](https://develop.sentry.dev/self-hosted/) (last updated July 2019; [getsentry/docker-sentry#189](https://github.com/getsentry/docker-sentry/pull/189)).\n\n# Quick reference\n\n-\t**Maintained by**:  \n\t[Sentry](https://github.com/getsentry/docker-sentry)\n\n-\t**Where to get help**:  \n\t[the Docker Community Forums](https://forums.docker.com/), [the Docker Community Slack](https://dockr.ly/slack), or [Stack Overflow](https://stackoverflow.com/search?tab=newest\u0026q=docker)\n\n# Supported tags and respective `Dockerfile` links\n\n**No supported tags**\n\n# Quick reference (cont.)\n\n-\t**Where to file issues**:  \n\t[https://github.com/getsentry/docker-sentry/issues](https://github.com/getsentry/docker-sentry/issues)\n\n-\t**Supported architectures**: ([more info](https://github.com/docker-library/official-images#architectures-other-than-amd64))  \n\t**No supported architectures**\n\n-\t**Published image artifact details**:  \n\t[repo-info repo's `repos/sentry/` directory](https://github.com/docker-library/repo-info/blob/master/repos/sentry) ([history](https://github.com/docker-library/repo-info/commits/master/repos/sentry))  \n\t(image metadata, transfer size, etc)\n\n-\t**Image updates**:  \n\t[official-images repo's `library/sentry` label](https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fsentry)  \n\t[official-images repo's `library/sentry` file](https://github.com/docker-library/official-images/blob/master/library/sentry) ([history](https://github.com/docker-library/official-images/commits/master/library/sentry))\n\n-\t**Source of this description**:  \n\t[docs repo's `sentry/` directory](https://github.com/docker-library/docs/tree/master/sentry) ([history](https://github.com/docker-library/docs/commits/master/sentry))\n\n# What is Sentry?\n\nSentry is a realtime event logging and aggregation platform. It specializes in monitoring errors and extracting all the information needed to do a proper post-mortem without any of the hassle of the standard user feedback loop.\n\n\u003e [github.com/getsentry/sentry](https://github.com/getsentry/sentry)\n\n![logo](https://raw.githubusercontent.com/docker-library/docs/7d1c6fff37893bcefc186de7b978f5bdb2f801f6/sentry/logo.png)\n\n# How to use this image\n\n## How to setup a full Sentry instance\n\n1.\tStart a Redis container\n\n\t```console\n\t$ docker run -d --name sentry-redis redis\n\t```\n\n2.\tStart a Postgres container\n\n\t```console\n\t$ docker run -d --name sentry-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=sentry postgres\n\t```\n\n3.\tGenerate a new secret key to be shared by all `sentry` containers. This value will then be used as the `SENTRY_SECRET_KEY` environment variable.\n\n\t```console\n\t$ docker run --rm sentry config generate-secret-key\n\t```\n\n4.\tIf this is a new database, you'll need to run `upgrade`\n\n\t```console\n\t$ docker run -it --rm -e SENTRY_SECRET_KEY='\u003csecret-key\u003e' --link sentry-postgres:postgres --link sentry-redis:redis sentry upgrade\n\t```\n\n\t**Note: the `-it` is important as the initial upgrade will prompt to create an initial user and will fail without it**\n\n5.\tNow start up Sentry server\n\n\t```console\n\t$ docker run -d --name my-sentry -e SENTRY_SECRET_KEY='\u003csecret-key\u003e' --link sentry-redis:redis --link sentry-postgres:postgres sentry\n\t```\n\n6.\tThe default config needs a celery beat and celery workers, start as many workers as you need (each with a unique name)\n\n\t```console\n\t$ docker run -d --name sentry-cron -e SENTRY_SECRET_KEY='\u003csecret-key\u003e' --link sentry-postgres:postgres --link sentry-redis:redis sentry run cron\n\t$ docker run -d --name sentry-worker-1 -e SENTRY_SECRET_KEY='\u003csecret-key\u003e' --link sentry-postgres:postgres --link sentry-redis:redis sentry run worker\n\t```\n\n### Port mapping\n\nIf you'd like to be able to access the instance from the host without the container's IP, standard port mappings can be used. Just add `-p 8080:9000` to the `docker run` arguments and then access either `http://localhost:8080` or `http://host-ip:8080` in a browser.\n\n## Configuring the initial user\n\nIf you did not create a superuser during `upgrade`, use the following to create one:\n\n```console\n$ docker run -it --rm -e SENTRY_SECRET_KEY='\u003csecret-key\u003e' --link sentry-redis:redis --link sentry-postgres:postgres sentry createuser\n```\n\n## Environment variables\n\nWhen you start the `sentry` image, you can adjust the configuration of the Sentry instance by passing one or more environment variables on the `docker run` command line. Please note that these environment variables are provided as a jump start, and it's highly recommended to either mount in your own config file or utilize the `sentry:onbuild` variant.\n\n### `SENTRY_SECRET_KEY`\n\nA secret key used for cryptographic functions within Sentry. This key should be unique and consistent across all running instances. You can generate a new secret key doing something like:\n\n```console\n$ docker run --rm sentry config generate-secret-key\n```\n\n### `SENTRY_POSTGRES_HOST`, `SENTRY_POSTGRES_PORT`, `SENTRY_DB_NAME`, `SENTRY_DB_USER`, `SENTRY_DB_PASSWORD`\n\nDatabase credentials for your Postgres server. These values aren't needed if a linked `postgres` container exists.\n\n### `SENTRY_REDIS_HOST`, `SENTRY_REDIS_PORT`, `SENTRY_REDIS_DB`\n\nConnection information for your Redis server. These values aren't needed if a linked `redis` container exists.\n\n### `SENTRY_MEMCACHED_HOST`, `SENTRY_MEMCACHED_PORT`\n\nConnection information for a Memcache server. These values aren't needed if a linked `memcached` container exists.\n\n### `SENTRY_FILESTORE_DIR`\n\nDirectory where uploaded files will be stored. This defaults to `/var/lib/sentry/files` and is a `VOLUME` for persistent data.\n\n### `SENTRY_SERVER_EMAIL`\n\nThe email address used for `From:` in outbound emails. Default: `root@localhost`\n\n### `SENTRY_EMAIL_HOST`, `SENTRY_EMAIL_PORT`, `SENTRY_EMAIL_USER`, `SENTRY_EMAIL_PASSWORD`, `SENTRY_EMAIL_USE_TLS`\n\nConnection information for an outbound smtp server. These values aren't needed if a linked `smtp` container exists.\n\n### `SENTRY_MAILGUN_API_KEY`\n\nIf you're using Mailgun for inbound mail, set your API key and configure a route to forward to `/api/hooks/mailgun/inbound/`.\n\n# License\n\nView [license information](https://github.com/getsentry/sentry/blob/master/LICENSE) for the software contained in this image.\n\nAs with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).\n\nSome additional license information which was able to be auto-detected might be found in [the `repo-info` repository's `sentry/` directory](https://github.com/docker-library/repo-info/tree/master/repos/sentry).\n\nAs for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.","permissions":{"read":true,"write":false,"admin":false},"media_types":["application/octet-stream","application/vnd.docker.container.image.v1+json","application/vnd.docker.distribution.manifest.list.v2+json","application/vnd.docker.distribution.manifest.v1+prettyjws"],"content_types":["unrecognized","image"],"categories":[],"immutable_tags_settings":{"enabled":false,"rules":[".*"]},"storage_size":28142239296,"source":null}