You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
androiddrew fd505fa144 Added body field to Homepage. Switched to python-slim image 6 years ago
..
cms Removed Whitenoise and added an Nginx proxy to serve static content 6 years ago
home Added body field to Homepage. Switched to python-slim image 6 years ago
search Initial commit 6 years ago
.dockerignore Added body field to Homepage. Switched to python-slim image 6 years ago
Dockerfile Added body field to Homepage. Switched to python-slim image 6 years ago
README.md Basic Docker deployment added with instructions 6 years ago
entrypoint.sh Removed Whitenoise and added an Nginx proxy to serve static content 6 years ago
manage.py Initial commit 6 years ago
requirements.txt Removed Whitenoise and added an Nginx proxy to serve static content 6 years ago

README.md

Datasketch CMS

This service is built using the Wagtail framework.

Middleware

Since this application is being deployed to a Docker swarm it utilizes Whitenoise and the Django specific whitenoise middleware to deliver static content. This solution is suitable for serving low traffic static content. To improve performance an Nginx reverse proxy could leverage HTTP caching or could be configured to serve all static content directly.

Environmental Variables

The follow environment variables must be set for development. Note that the DB_PASSWD for production must be a docker secret.

DB_HOST=<hostname for database>
DB_PASSWD=ec<Password for datasketch user>

In production you must set the DJANGO_SETTINGS_MODULE to the appropriate module:

DJANGO_SETTINGS_MODULE=cms.settings.production

Migrations

The manage.py file is used to upgrade the backend database. You will need to log into the container on the appropriate host and execute the command python manage.py migrate manually.