Skip to content

Commit

Permalink
Merge pull request #171 from praekeltfoundation/add-running-in-prd
Browse files Browse the repository at this point in the history
Add running in prd to readme
  • Loading branch information
erikh360 authored Oct 23, 2023
2 parents 3090b27 + 90865f5 commit e05f145
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ Tools
- `black`_ - this repository uses an opinionated python code formatter. See ``pyproject.toml`` for config.
- `pre-commit`_ - lints staged code as a git pre-commit check. Will prevent commits if linting fails. Currently runs black, flake8 and yamllint.

---------------------
Running in Production
---------------------

There is a [docker image](https://github.com/praekeltfoundation/rp-sidekick/pkgs/container/rp-sidekick) that can be used to easily run this service. It uses the following environment variables for configuration:

| Variable | Description |
| ---------- | ----------- |
| SECRET_KEY | The django secret key, set to a long, random sequence of characters |
| DATABASE_URL | Where to find the database. Set to `postgresql://host:port/db` for a postgresql database |
| ALLOWED_HOSTS | Comma separated list of hostnames for this service, eg. `host1.example.org,host2.example.org` |
| BROKER_URL | Where to find the broker. Set to `amqp://username:password@host:post/vhost` to connect to RabbitMQ |
| SENTRY_DSN | Where to send exceptions to |
------------
Contributing
------------
Expand Down

0 comments on commit e05f145

Please sign in to comment.