-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat/M2-7(Criar interfaces para o banco de dados) ✨ Add PostgreSQL an…
…d spring-boot-starter-data-jpa dependencies - **Adicione as dependências PostgreSQL e spring-boot-starter-data-jpa** - As dependências PostgreSQL e spring-boot-starter-data-jpa foram adicionadas no arquivo pom.xml. - **Atualize o arquivo application.yaml** - O arquivo application.yaml foi atualizado com os detalhes da conexão PostgreSQL. Estas mudanças são necessárias para: - **Integrar um banco de dados PostgreSQL com a aplicação Spring Boot** - A integração com o banco de dados PostgreSQL permite à aplicação Spring Boot interagir com esse banco de dados. - **Utilizar o Spring Data JPA para interações com o banco de dados** - A dependência spring-boot-starter-data-jpa facilita as interações com o banco de dados, fornecendo um conjunto de ferramentas perspicazes e fáceis de usar. - **Crie um arquivo docker-compose** - Um arquivo docker-compose também foi criado para inicializar o contêiner do banco de dados PostgreSQL. - Lembre-se que estamos usando o modelo mais atual de Compose.
- Loading branch information
1 parent
dd43d24
commit 96f5b53
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
services: | ||
database: | ||
image: "postgres:latest" | ||
container_name: hex_postgres_db | ||
environment: | ||
- POSTGRES_USER=local_user | ||
- POSTGRES_DB=local_db | ||
- POSTGRES_PASSWORD=local_password | ||
ports: | ||
- "5432:5432" | ||
volumes: | ||
- db-postgres-hex:/var/lib/postgresql/data | ||
|
||
volumes: | ||
db-postgres-hex: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters