Ticket Management Test App
To build and start the app in a Docker container, be sure to provide the HTTPS DEV cert password in the .env file(HTTPS_CERT_PASSWORD variable).
If you don't have a DEV cert or don't remember the password, you can create a new one.
- Remove any development certificates that already exist on the local machine.
dotnet dev-certs https --clean
- Generate certificate and configure local machine:
Windows using Linux containers
dotnet dev-certs https -ep "$env:USERPROFILE\.aspnet\https\aspnetapp.pfx" -p $CREDENTIAL_PLACEHOLDER$
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$
dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$
3. Trust created cert
dotnet dev-certs https --trust
After creating the DEV cert, provide the password in the .env file.
Finally, build and start the app by executing the following command:
docker compose -f docker-compose.local.yaml up
For more information, visit https://learn.microsoft.com/en-us/aspnet/core/security/docker-compose-https?view=aspnetcore-6.0