Docker Compose orchestrates the entire Innovatech Chile stack — the Ventas API, Despachos API, React frontend, and MySQL database — from a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/DevOpsDuoc/Evaluacion02_Devop_Innovatech/llms.txt
Use this file to discover all available pages before exploring further.
docker-compose.yml file in the proyect/ directory. The steps below take you from a fresh clone to a running local environment.
Set the required environment variable
docker-compose.yml uses AWS_ACCOUNT_ID to tag images. Export it before running any Compose commands.123456789012 with your actual 12-digit AWS account ID.Start all services
Run the following from the Docker builds the
proyect/ directory:backend and frontend images from their local Dockerfiles on the first run, then starts all four containers in detached mode.Service URLs
Once all containers are up, the services are available at:| Service | URL |
|---|---|
| Frontend | http://localhost |
| Ventas API | http://localhost:3001 |
| Despachos API | http://localhost:3002 |
| MySQL | localhost:3306 |
Environment variables in docker-compose.yml
The backend services receive their database connection settings as environment variables injected by Compose. No manual configuration is required for local development — these values are already set indocker-compose.yml:
SPRING_JPA_HIBERNATE_DDL_AUTO: update tells Hibernate to automatically create or update the database schema on startup. This is safe for local development; use a migration tool like Flyway in production.
Viewing logs
To stream logs from all services:Stopping the stack
tienda_db_data named volume is preserved, so your MySQL data survives the shutdown.
MySQL data is stored in a Docker named volume called
tienda_db_data. Because Docker manages the volume independently from the containers, your database persists across docker compose down and docker compose up cycles. To reset the database to a clean state, remove the volume explicitly with docker compose down -v.