This document describes how to configure and run a development environment for databus using Docker.
Warning
It is ideal not to skip steps in this guide, and if necessary, ask for help.
Tip
After completing this manual, it is recommended to take a look at the documents inside the docs folder to get familiar with the project and its components.
The following components must be installed:
The following components must be installed (it is recommended to check the specific documentation for your OS):
Tip
Installing Docker Desktop includes the Docker engine and Docker Compose. It helps visualize containers and provides multiple useful tools.
git clone https://github.com/simovilab/databus.gitBefore starting the environment, you need to create a .env file at the root of the project. This file contains sensitive variables such as secret keys and database credentials.
Important
The .env. file must not be uploaded to the repository. Request the content from another project collaborator.
Ensure the scripts are executable:
chmod +x ./scripts/*.shOpen the Docker Desktop executable application.
Run the script from the root:
./scripts/dev.shNote
It is normal to see several warnings during this process. This process may take several minutes, be patient until it says "database is ready to accept connections"
Once everything is running, access the browser with the following address, which by default is port 8000:
http://localhost:8000/
bUCR GTFS data can be loaded with the following command:
docker compose -f Docker/compose.dev.yml exec web uv run python manage.py loaddata gtfs.json- Restart the docker container with
./scripts/dev.sh- Verify that Docker is running correctly.
- Ensure that the
.envfile is present and properly configured. - If changes are made to the
Docker/Dockerfileor dependencies, run:
docker compose down
docker compose up --builddocker compose downdocker compose logs -f