You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.6 KiB

  1. # Running with Docker
  2. In the Healthchecks source code, [/docker/ directory](https://github.com/healthchecks/healthchecks/tree/master/docker),
  3. you can find a sample configuration for running the project with
  4. [Docker](https://www.docker.com) and [Docker Compose](https://docs.docker.com/compose/).
  5. **Note: The Docker configuration is a recent addition, and, for the time being,
  6. should be considered as highly experimental**.
  7. Note: For the sake of simplicity, the sample configuration starts a single database
  8. node and a single web server node, both on the same host. It also does not handle SSL
  9. termination. If you plan to expose it to the public internet, make sure you put a
  10. SSL-terminating load balancer or reverse proxy in front of it.
  11. ## Getting Started
  12. * Grab the Healthchecks source code
  13. [from the Github repository](https://github.com/healthchecks/healthchecks).
  14. * Add your [configuration](../self_hosted_configuration/) in the `/docker/.env` file.
  15. As a minimum, set the following fields:
  16. * `DEFAULT_FROM_EMAIL` – the "From:" address for outbound emails
  17. * `EMAIL_HOST` – the SMTP server
  18. * `EMAIL_HOST_PASSWORD` – the SMTP password
  19. * `EMAIL_HOST_USER` – the SMTP username
  20. * `SECRET_KEY` – secures HTTP sessions, set to a random value
  21. * Create and start containers:
  22. $ cd docker
  23. $ docker-compose up
  24. * Create a superuser:
  25. $ docker-compose run web /opt/healthchecks/manage.py createsuperuser
  26. * Open [http://localhost:8000](http://localhost:8000) in your browser and log in with
  27. the credentials from the previous step.