Server ROUT of the Mobashi system.
Only the first time, init Django models and create superuser, running the following commands while inside the running devcontainer:
cd /workspaces/mobashi-rout/mobashi-rout
../django_init.sh
Only the first time, init Django models and create superuser, running the following commands while outside the running devcontainer:
sudo docker compose up -d
sudo docker compose exec mobashi-rout /bin/bash
./django_init.sh
Anytime something changes in the image, for example something file requirements.txt, use following command to rebuild:
sudo docker compose down
sudo docker compose build
sudo docker compose up -d
If usage of local pgrouting is needed, a suitable Database must be accessible and can be created using:
https://github.com/amat-mi/amat-osmtools-docker
Start all the services:
sudo docker compose up -d
Opn a shell into running container for "mobashi-rout" service:
sudo docker compose exec mobashi-rout /bin/bash