Database support

Added connection
Added healthcheck
Added migration
This commit is contained in:
Leons Aleksandrovs
2025-07-03 23:28:01 +03:00
parent d4c5fe3d4d
commit 5596e37b1e
9 changed files with 134 additions and 13 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func LoadEnv() map[string]string {
env := make(map[string]string, 1)
// Get env variables that will be used while server is running
env["port"] = defaultValue(os.Getenv("PORT"), "8080")
env["db"] = defaultValue(os.Getenv("POSTGRES_DB"), "postgresql://postgres:postgres@db:5432/cover-letter")
return env
}