diff --git a/build.gradle b/build.gradle index 2c09e0d..4340fce 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,6 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' testImplementation 'org.springframework.boot:spring-boot-starter-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' - implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' runtimeOnly 'org.postgresql:postgresql' implementation 'org.hibernate.validator:hibernate-validator' diff --git a/docker-compose.yaml b/docker-compose.yaml index 772008b..f33b9fe 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,10 +15,10 @@ services: - POSTGRES_USER=${POSTGRES_USERNAME} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} env_file: - - .env + - stack.env restart: unless-stopped postgres: - image: postgres:15 + image: postgres:15-alpine container_name: cftunnel-db environment: POSTGRES_DB: cftunnel @@ -28,7 +28,4 @@ services: ports: - "5432:5432" volumes: - - pgdata:/var/lib/postgresql/data - -volumes: - pgdata: {} \ No newline at end of file + - ${DB_PATH}:/var/lib/postgresql/data \ No newline at end of file diff --git a/src/main/resources/application-local.properties b/src/main/resources/application-local.properties index 556b2d1..c355d6f 100644 --- a/src/main/resources/application-local.properties +++ b/src/main/resources/application-local.properties @@ -6,3 +6,5 @@ management.endpoint.health.show-details=always logging.level.org.hibernate.SQL=DEBUG debug=true + +spring.datasource.url=jdbc:postgresql://localhost:5432/cftunnel diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e6d31e7..c241382 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -18,7 +18,7 @@ spring.security.oauth2.client.provider.cftunnels.user-info-uri=https://auth.hith spring.security.oauth2.client.provider.cftunnels.jwk-set-uri=https://auth.hithomelabs.com/application/o/cftunnels/jwks/ spring.security.oauth2.client.provider.cftunnels.issuer-uri=https://auth.hithomelabs.com/application/o/cftunnels/ -spring.datasource.url=jdbc:postgresql://localhost:5432/cftunnel +spring.datasource.url=jdbc:postgresql://192.168.0.100:5432/cftunnel spring.datasource.username=${POSTGRES_USERNAME} spring.datasource.password=${POSTGRES_PASSWORD} spring.datasource.driver-class-name=org.postgresql.Driver @@ -26,5 +26,6 @@ spring.sql.init.mode=always spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect + +spring.jpa.open-in-view=false \ No newline at end of file