Skip to content

Commit a5669e4

Browse files
committed
Change the docker container name and Update application.properties
1 parent a7b89ec commit a5669e4

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

‎docker/docker-compose.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.3"
22

33
services:
44
postgres:
5-
container_name: postgres
5+
container_name: hawapi-postgres
66
build:
77
context: .
88
dockerfile: postgres/Dockerfile
Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1+
# Database configuration
12
spring.datasource.driver-class-name=org.postgresql.Driver
23
spring.datasource.username=postgres
34
spring.datasource.password=postgres
4-
spring.datasource.url=jdbc:postgresql://localhost:5432/hawapi
5+
spring.datasource.url=jdbc:postgresql://localhost:5432/hawapi?useSSL=false
6+
7+
# Spring configuration
58
server.servlet.context-path=/api
9+
10+
# Log configuration
611
server.error.include-exception=false
712
server.error.include-stacktrace=never
8-
server.error.include-message=always
13+
server.error.include-message=always
14+
15+
# Show or not log for each sql query
16+
spring.jpa.show-sql=true
17+
18+
# Hibernate ddl auto (create, create-drop, update): with "update" the database
19+
# schema will be automatically updated accordingly to java entities found in
20+
# the project
21+
spring.jpa.hibernate.ddl-auto=update

0 commit comments

Comments
 (0)