Project created for practice publish a Spring-boot Application with Java 17, docker and docker-compose
docker-compose -f .\docker-compose.db.yml build --no-cache--no-cache *optional.
docker-compose -f .\docker-compose.db.yml upCan be run with -d for detach console
docker logs -f named-docker-servicedetach console docker container example = api-transfer
docker-compose -f .\docker-compose.api.yml build --no-cachedocker-compose -f .\docker-compose.api.yml updocker logs -f named-docker-servicedetach console docker container example = db-transfer
Alternatively, for the api, it can be started without building a image, for development purposes and practicality
mvn spring-boot:runIn order for the application connection work properly with the database, application.properties, line 11, must be edited from:
spring.datasource.url=jdbc:postgresql://db:5432/transferdbto
spring.datasource.url=jdbc:postgresql://0.0.0.0:5432/transferdb👤 jadergermano jader.germano@icloud.com
- Twitter: @jaderphilipe
- Github: @jader-germano
- LinkedIn: @jader-germano
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!