We use docker compose to organize MIRACLE's components. These consist of Docker images for the following:
development.yml
to docker-compose.yml
cp django/miracle/settings/local.py.example django/miracle/settings/local.py
docker-compose build && docker-compose up django
will start a Django development server on port 8000production.yml
to docker-compose.yml
and edit the relevant environment variables for MIRACLE_ADMIN
server.crt
and server.key
, respectivelydeploy/deployr/deployr.conf.example
to deploy/deployr/deployr.conf
and change the username / passwords
so that the deployr container will create a custom user that can be accessed from Django.deploy/db/init-db-user.sh
and django/miracle/settings/local.py
% sh build.sh
docker-compose up -d
and take them down via docker-compose down
miracle
homepage should be live at https://localhost
at this pointYou can load the luxedemo.packrat.tar.gz
and rhea.packrat.tar.gz
from the
miracle example projects github repository via the command line by
downloading the packrat.tar.gz
files into the django
directory (this project's source tree is mapped to
/code/ in the Django container by default) and performing the following steps:
% docker-compose exec django bash # login to the container
% cd django;
% ./manage.py load_project luxedemo.packrat.tar.gz --creator=<username> --project=luxedemo
% ./manage.py load_project rhea.packrat.tar.gz --creator=<username> --project=rhea