The includedDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ierinconc/billar-pro-backend/llms.txt
Use this file to discover all available pages before exploring further.
docker-compose.yml spins up a single PostgreSQL 16 container named billarpro-postgres, giving you a fully isolated local database without installing Postgres directly on your machine. The Spring Boot application itself runs outside Docker via Maven, connecting to the containerized database over localhost.
docker-compose.yml
docker-compose.yml
Port mapping
The container exposes PostgreSQL internally on port 5432, but it is bound to host port 5433 to avoid conflicts with any locally installed Postgres instance. Your JDBC URL must therefore target port5433:
.env.example
Use this file as the template for your local.env. Copy it to .env and fill in your chosen password — Docker Compose automatically loads .env from the project root.
.env.example
Starting the local stack
Create your local .env file
Copy the example file and set a password of your choice:Open
.env and replace tu_password_local with the password you want to use for the local database.Start the PostgreSQL container
Launch the database in detached mode:Docker Compose reads
.env automatically. The container is ready as soon as docker-compose ps shows it as Up.Configure application.yml
Copy the application configuration example and update the credentials to match what you set in Edit
.env:src/main/resources/application.yml and replace TU_CONTRASEÑA_AQUI with your chosen password. The JDBC URL must use port 5433 (the Docker host port), not the default 5432:src/main/resources/application.yml
Run the Spring Boot application
Start the backend with the Maven wrapper (Java 21 required):On first startup,
DataSeeder automatically creates six billiard tables and an admin user. Look for the log lines:Useful Docker commands
| Command | Purpose |
|---|---|
docker-compose ps | Show running container status |
docker-compose logs db | Tail PostgreSQL logs |
docker-compose down | Stop and remove the container (data is preserved in the volume) |
docker-compose down -v | Stop and remove the container and delete the volume |