Testing repo for running Indigo on Docker via Docker Compose:
Note, this is a work in progress, currently not working, installation succeeds, however pending some revisions.
This assumes that you have installed docker and docker-compose on a system with no external facing ip (On purpose, ideal deployment would have Docker Server hosted behind a reverse proxy).
Clone from GIT and enter:
git clone --branch v18.0.0 https://github.com/buff0k/indigo-dockercd indigo-dockerGenerate a .env using example-env
cp example-env .envSet up the .env file with your settings:
nano .envEdit the file to match your desired settings. Change the Variables, except DATABASE=postgres (This is currently part of the entrypoint file), to your own settings.
Deploy to Docker using Docker Compose:
docker-compose upOnce it is fully up, you can stop it with Ctrl+c, you still need to switch it to production mode.
Change the docker-compose file to production mode:
nano docker-compose.ymlEdit thie line "DJANGO_DEBUG=true" to "DJANGO_DEBUG=false"
Now start up the Indigo Containers in production mode:
docker-compose upIf you want it to run as a daemon, add the -d switch to the end of the docker-compose up command.
Configure Superuser:
docker exec -it indigo-docker_indigo_1 python /src/indigo/manage.py createsuperuser- Due to an issue with the indigo source, the initial databsae migration can only be run in debug mode, the above workaround solves this.
- Still having some issues with the cron job for Background Tasks to run.