This is a Docker Compose wrapper for the Ecobasa.org code resident in
git clone https://lab.allmende.io/ecobasa/compose-ecobasa.git && cd compose-ecobasa
1.1. Initialisation (see below)docker-compose up -d
docker-compose run --rm django ./manage.py syncdb --noinput
docker-compose run --rm django ./manage.py migrate
docker-compose run --rm django ./manage.py collectstatic --noinput
docker-compose run --rm django ./manage.py createsuperuser
If the sources in ./src
changed, please run this sequence of commands:
docker-compose build django
docker-compose run --rm django ./manage.py syncdb
docker-compose run --rm django ./manage.py migrate
rm -rf static-collected/*
docker-compose run --rm django ./manage.py collectstatic --noinput
docker-compose stop django && docker-compose rm -f django && docker-compose up -d django
You can use docker-compose.devel.yml and settings.devel.py to run a development environment and then
docker-compose -f docker-compose.devel.yaml build
docker-compose -f docker-compose.devel.yaml run --rm django ./manage.py syncdb
docker-compose -f docker-compose.devel.yaml run --rm django ./manage.py migrate
docker-compose -f docker-compose.devel.yaml run --rm django sh -c 'cd /opt/services/ecobasa/ecobasa/ && /opt/services/ecobasa/manage.py compilemessages'
docker-compose -f docker-compose.devel.yaml up -d
(c) 2019 Ecobasa e.V. - WTFPL