SolSQL API ships with a multi-stage Dockerfile that produces a lean ASP.NET Core 8 runtime image. This guide covers building the image, setting the MySQL connection string, and starting the container — either directly with Docker or through Docker Compose.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jparra-amell/api_solsql/llms.txt
Use this file to discover all available pages before exploring further.
Review the Dockerfile
The project uses a two-stage build. The first stage compiles the application with the .NET 8 SDK; the second stage produces a minimal runtime image and exposes port 8080.
Configure the MySQL connection string
The API reads the database connection from the Replace the placeholder values with your MySQL server details before building, or override the value at runtime using an environment variable:
Connection_mysql key in appsettings.json:ASP.NET Core maps the double-underscore (
__) separator in environment variable names to nested JSON keys, so ConnectionStrings__Connection_mysql overrides ConnectionStrings.Connection_mysql without modifying any file.Build the Docker image
Run the following command from the repository root (the directory that contains the The build restores NuGet packages, compiles the project in Release mode, and copies the published output into the final runtime image.
api_solsql/ folder and docker-compose.yml):Run the container
Start the container and map port 8080 to your host:The API will be available at
http://localhost:8080. Open http://localhost:8080/swagger to verify the service is running.Use Docker Compose (optional)
The repository includes a You can extend this file to add environment variables, port mappings, and a MySQL service. To build and start with Compose:To pass the connection string without modifying the Compose file, set it in a
docker-compose.yml for convenience:.env file or export it in your shell before running docker compose up.Next steps
Quickstart
Make your first API call and verify authentication is working.
Authentication
Understand the login flow and how roles map to user types.