Skip to content
Merged

Dev #24

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM maven:3.9.6-eclipse-temurin-21

WORKDIR /app

COPY pom.xml .
COPY src ./src

EXPOSE 8080

CMD ["mvn", "spring-boot:run", "-Dspring-boot.run.arguments=--server.address=0.0.0.0"]
15 changes: 8 additions & 7 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Datasource configuration
spring.datasource.url=jdbc:postgresql://localhost:5432/sanalyz
spring.datasource.username=sanalyz
spring.datasource.password=sanalyz
spring.datasource.url=${DB_URL:jdbc:postgresql://localhost:5432/sanalyz}
spring.datasource.username=${DB_USER:sanalyz}
spring.datasource.password=${DB_PASSWORD:sanalyz}
spring.datasource.driver-class-name=org.postgresql.Driver

server.port=8080
Expand All @@ -12,8 +12,9 @@ server.servlet.session.cookie.http-only=true
security.ignored=/**

# Hibernate & JPA settings
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=${DDL_AUTO:update}
spring.jpa.show-sql=${SHOW_SQL:true}
server.address=0.0.0.0

ai.api-url=http://localhost:8081
ai.api-key=abcd1234
ai.api-url=${AI_API_URL:http://localhost:8081}
ai.api-key=${AI_API_KEY:abcd1234}