sudo docker volume create booking_mbc
- Environment variables for server config are set inside docker-compose.yml
- The field DJANGO_ALLOWED_HOSTS in the environment variables must be set to the address used to access the software, or Django will refuse connections.
- from root folder run sudo docker-compose up
- website is then accessible at http://127.0.0.1:8000/
- The database is created with an existing admin account with password admin
To open a shell inside the running server's container use:
- sudo docker exec -ti 3plex_frontend_server-app-1 /bin/sh To close it:
- exit Similarly, db shell can be accessed:
- mysql --host=127.0.0.1 --port=30002 -u root -p
It is possible to launch the software outside of the docker container for debug and develop purposes.
- Launch the database docker service with
-
- docker compose up -d db
- Enter in the stabulario subfolder
- Load environment variables
-
- source debug_config.sh
- Create virtual environment
-
- python3 -m venv env
- Activate virtual env
-
- source env/bin/activate
- Install requirements into environment
-
- python3 -m pip install -r requirements.txt