Basic Spring boot with Rick and Morty data.
Java version 17
mvn clean install -DskipTests
docker build --build-arg JAR_FILE=target/spring-boot-3-basic-1.0.0-SNAPSHOT.jar -t spring-rm .
docker run --name backend-spring-rm -p 8080:8080 -it spring-rm
http://localhost:8080/swagger-ui/index.html
docker ps
docker inspect **CONTAINER_ID_POSTGRES**
Get IPAddress in NetworkSettings.NetWorks.IPAddress
and this is the connection;host/name
https://www.postgresqltutorial.com/postgresql-getting-started/connect-to-postgresql-database/
export SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/test_db
export SPRING_DATASOURCE_USERNAME=root
export SPRING_DATASOURCE_PASSWORD=root
export SPRING_JPA_HIBERNATE_DDL_AUTO=create
docker-compose up