Day-to-day operation of ProyectoDocker revolves around a small set ofDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jperez77775/ProyectoDocker/llms.txt
Use this file to discover all available pages before exploring further.
docker compose commands. This page covers everything you need to start, stop, and update the three-service stack (database, backend, frontend) and verify that each service is running correctly.
Starting and stopping
Usedocker compose from the root of the repository where docker-compose.yml lives.
| Command | What it does |
|---|---|
docker compose up -d | Start all services in detached mode. Containers run in the background. |
docker compose up -d --pull always | Start all services and pull the latest image for each before starting. Use this after pushing updated images. |
docker compose down | Stop and remove all containers. Volumes are preserved, so your database data is safe. |
docker compose down -v | Stop and remove all containers and volumes. All database data is destroyed. |
docker compose stop | Stop running containers without removing them. |
docker compose start | Start containers that were previously stopped with docker compose stop. |
Checking status
After starting the stack, you can inspect service health and read logs with these commands:docker compose ps shows all three containers as running and the database container as healthy. The health check runs mysqladmin ping -h localhost -u root -prootpassword every 5 seconds with up to 10 retries, so MySQL typically reaches healthy within 45 seconds of first startup.
Updating images
When you modify the backend or frontend code, you need to rebuild the image, push it to Docker Hub, and then redeploy the stack. Follow these steps in order: 1. Rebuild the image without cache Run this command from inside the service directory (e.g.,backend/ or frontend/):
<username> with your Docker Hub username. The project’s docker-compose.yml uses docker.io/fullstack2026/perez-backend:v1 as the reference image for the backend service.
2. Push the image to Docker Hub
docker login). Repeat this step for the frontend image if you changed the frontend.
3. Redeploy the stack
Return to the repository root and pull the updated images:
Accessing the running services
Once the stack is up and thedatabase container reports healthy, you can reach each service at the following addresses:
| Service | URL | Notes |
|---|---|---|
| Frontend UI | http://localhost:3000 | React application serving the CV interface |
| Backend JSON API | http://localhost:4000/cv | Returns the full CV object as JSON |
| MySQL | localhost:3306 | Connect with any MySQL client using root / rootpassword |
docker-compose.yml:
docker-compose.yml