Add initial database migration script to create tables and seed data.

Add Dockerfile and docker-compose.yml for containerizing the Spring Boot application with PostgreSQL
This commit is contained in:
liosha84
2025-06-15 19:22:14 +03:00
parent e7fe1dfc63
commit 2572c86560
11 changed files with 173 additions and 6 deletions
+17 -2
View File
@@ -1,9 +1,14 @@
spring.application.name=jambotron
spring.datasource.url= jdbc:postgresql://localhost:5432/springangulardb
spring.datasource.url= jdbc:postgresql://localhost:5432/jambotronDB
spring.datasource.username= admin
spring.datasource.password= postgrespw
#spring.datasource.url=${SPRING_DATASOURCE_URL}
#spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
#spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation= true
spring.jpa.properties.hibernate.dialect= org.hibernate.dialect.PostgreSQLDialect
@@ -19,8 +24,18 @@ app.origin=http://localhost:4200
spring.mvc.throw-exception-if-no-handler-found=true
# Disable the default mappings
spring.resources.add-mappings=false
#spring.resources.add-mappings=false
spring.resources.static-locations=classpath:/public
spring.resources.cache.period=31557600s # 1 year if you want
spa.default-file=classpath:/public/browser/index.html
spring.docker.compose.file=../Docker/docker-compose.yml
spring.flyway.locations=classpath:db.migration
flyway.user=admin
flyway.password=postgrespw
flyway.schemas=jambotronDB
flyway.url=jdbc:postgresql://localhost:5432/jambotronDB