Docker command to run a MariaDB container:
docker run -d --name maria -e MARIADB_ROOT_PASSWORD=weather -e MARIADB_DATABASE=weather -p 3306:3306 mariadb:10.5
To launch the application:
mvn spring-boot:run -Dspring-boot.run.profiles=local
To connect to the database:
docker exec -it maria mysql --user root -pweather weather
To launch it in production:
java -Dserver.port=7878 -jar -Dspring.profiles.active=dev weather-watcher.jar