A simple Python project running inside Docker.
- Docker (>= 20.10)
- Docker Compose
make(optional, if you want to use the providedMakefile)
All commands below assume you’re in the project root (dashboard/).
python -m venv .venv
source .venv/bin/python
pip install -r requirements.txt
reflex run
python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
reflex run
uv sync
uv run reflex runUsing Makefile:
make buildOr directly with Docker Compose:
docker-compose buildUsing Makefile:
make runOr directly with Docker Compose:
docker-compose up -d --build --force-recreateThis will start the safeflood service and map port 8080 on your machine to port 8080 in the container.
Using Makefile:
make logsOr direct:
docker-compose logs -fUsing Makefile:
make shellOr direct:
docker-compose exec safeflood /bin/bashUsing Makefile:
make stopOr direct:
docker-compose downOnce the container is up, you can verify it by running:
docker-compose exec safeflood python hello.pyYou should see:
Hello from safeflood!reflex runor
make reflex-runreflex run --loglevel debugor
make reflex-run-debug