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 79113f8390 Merge branch 'develop' v0.1.1 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 Merge branch 'develop'. Version 0.1.0 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.

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=<Password for datasketch user>

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

DJANGO_SETTINGS_MODULE=cms.settings.production

Migrations and collectstatic

Migrations and the collection of static content is managed through the entrypoint.sh script. On start up the cms container will check for the availability of the Postgres server, then run the migration and static file collection processes. The static files in production will be written to a persistent location on a NAS device. An Nginx service will mount that same static location and serve content.