Skip to main content

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.

Docker provides a self-contained environment to run Cevichería El Sabor Marino without installing Python or any dependencies directly on your machine. The included docker-compose.yml and Dockerfile handle everything: building the image, mapping port 8000, and mounting your local code into the container so changes are reflected immediately without a rebuild.
The application currently runs with DEBUG = True and an insecure hardcoded SECRET_KEY in config/settings.py. This configuration is intended for local development only. Before deploying to any public or production environment, set DEBUG = False, rotate the secret key, and configure ALLOWED_HOSTS appropriately.

Configuration files

services:
  web:
    build: .
    ports:
      - "8000:8000"
    volumes:
      - .:/app
The Dockerfile uses python:3.12-slim as its base image to keep the image size small. It installs requirements.txt before copying the rest of the source code, which means Docker can cache the dependency layer and skip reinstalling packages when only application code changes. Port 8000 is exposed and the Django development server is launched bound to 0.0.0.0 so it is reachable from outside the container. The docker-compose.yml maps host port 8000 to container port 8000 and mounts the project directory as a volume at /app. This means any code changes you make locally are immediately visible inside the running container — no rebuild required.

Docker steps

1

Build and start the container

From the project root, build the Docker image and start the service:
docker-compose up --build
The first run downloads the python:3.12-slim base image and installs dependencies. Subsequent runs are faster because Docker caches the image layers.
2

Open the site in your browser

Once the container is running, visit:
3

Stop the container

To stop and remove the running container, press Ctrl+C in the terminal running docker-compose up, then run:
docker-compose down
This stops the container and removes it. Your db.sqlite3 file and source code remain untouched on the host.

Build docs developers (and LLMs) love