chore: establish iteration 1 development baseline

This commit is contained in:
sechmachine
2026-08-14 23:22:31 +07:00
parent 55a8ce675f
commit 5967f7f70d
12 changed files with 300 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
spring:
datasource:
url: ${LAB_DB_URL:jdbc:postgresql://localhost:55432/labtimesheet}
username: ${LAB_DB_USERNAME:labtimesheet}
password: ${LAB_DB_PASSWORD:labtimesheet_dev}
mail:
host: ${LAB_SMTP_HOST:localhost}
port: ${LAB_SMTP_PORT:1025}
+7
View File
@@ -1,3 +1,10 @@
spring:
application:
name: labtimesheet
profiles:
default: dev
docker:
compose:
enabled: false
jpa:
open-in-view: false
@@ -3,9 +3,11 @@ package com.lab.labtimesheet;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ActiveProfiles;
@Import(TestcontainersConfiguration.class)
@SpringBootTest
@ActiveProfiles("test")
class LabtimesheetApplicationTests {
@Test
@@ -12,7 +12,7 @@ class TestcontainersConfiguration {
@Bean
@ServiceConnection
PostgreSQLContainer postgresContainer() {
return new PostgreSQLContainer(DockerImageName.parse("postgres:latest"));
return new PostgreSQLContainer(DockerImageName.parse("postgres:18.4"));
}
}
+4
View File
@@ -0,0 +1,4 @@
spring:
docker:
compose:
enabled: false