Docker Compose lets you build the El Sabor Marino Docker image and start the web service in one step, without installing Python or Django directly on your machine. The setup maps port 8000 on your host to the container and mounts your local source code so changes are reflected immediately.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/diazdavilajesus16-stack/Sevicheria-Mar-sabroso/llms.txt
Use this file to discover all available pages before exploring further.
Project files
Thedocker-compose.yml and Dockerfile at the root of the repository define the entire environment.
build: . instruction tells Compose to build the image from the local Dockerfile. The ports mapping exposes the app at http://localhost:8000. The volumes entry mounts the current directory into /app inside the container, so edits you make locally are visible without rebuilding the image.
Starting the application
Build and start the container
From the project root, run:This builds the Docker image (installing dependencies from
requirements.txt) and starts the web service. The --build flag ensures the image is rebuilt if any files have changed.Open the app in your browser
Navigate to http://localhost:8000 to view the El Sabor Marino home page. The Django admin panel is available at http://localhost:8000/admin/.
Common commands
| Task | Command |
|---|---|
| Start in the background | docker-compose up -d --build |
| Stop the containers | docker-compose down |
| View live logs | docker-compose logs -f |
| Run a management command | docker-compose exec web python manage.py <command> |
Live code reloading
The.:/app volume mount means any file you edit on your local machine is immediately available inside the container. Django’s development server watches for file changes and reloads automatically, so you do not need to restart the container after editing Python files or templates.