No description, website, or topics provided.
Clone or download
haswalt Merge pull request #4 from elisiariocouto/patch-1
Manage sendalerts with uWSGI
Latest commit 4f2c468 Feb 22, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dockerignore Ignore repository specific files Feb 20, 2017
Dockerfile use gosu to avoid running application as root Feb 20, 2017
README.md Add badges Feb 20, 2017
docker-compose.yml Running example with docker-compose Feb 20, 2017
docker-entrypoint.sh Run tasks with gosu Feb 20, 2017
local_settings.py Update port Feb 20, 2017
start.sh Manage sendalerts with uWSGI Feb 22, 2017

README.md

Healthchecks Docker

Docker image to run the healthchecks django application

N.B. Due to no tagging on the healthchecks repository this will always build with the latest commit

Building

docker build -t haswalt/healthchecks .

Running

docker run -p 9090:9090 haswalt/healthchecks

The container is now accepting requests on port 9090.

Admin Access

By default no admin user is created. To create your first admin user connect to your running docker container and run:

./manage.py createsuperuser

You will now be able to login to the admin at http://localhost:9090/admin.

N.B. There is no validation so ensure you correctly set an email address and password or you may find yourself unable to login.

Configuration

This image is built to take basic configuration from environment variables passed:

docker run -p 9090:9090 \
           -e HEALTHCHECKS_DEBUG=False \
           -e HEALTHCHECKS_HOST=localhost \
           -e HEALTHCHECKS_SITE_ROOT="http://localhost:9090" \
           -e HEALTHCHECKS_DB=mysql \
           -e HEALTHCHECKS_DB_HOST=localhost \
           -e HEALTHCHECKS_DB_USER=root \
           -e HEALTHCHECKS_DB_PASSWORD=pa55word\
           -e HEALTHCHECKS_EMAIL_FROM="healthchecks@example.org" \
           -e HEALTHCHECKS_EMAIL_HOST=localhost \
           -e HEALTHCHECKS_EMAIL_PORT=25 \
           -e HEALTHCHECKS_EMAIL_USER="" \
           -e HEALTHCHECKS_EMAIL_PASSWORD="" \
          haswalt/healthchecks