CHANGE: updated compose file

This commit is contained in:
2025-02-24 23:20:19 +01:00
parent 0bb12318cc
commit db98eecd87
9 changed files with 1691 additions and 427 deletions

View File

@@ -10,8 +10,8 @@ import (
func OpenDatabase() (*sql.DB, error) {
dbHost := helper.GetEnv("POSTGRES_HOST", "localhost")
dbName := helper.GetEnv("POSTGRES_DB", "arbeitszeitmessung")
dbUser := helper.GetEnv("POSTGRES_USER", "arbeit_zeit")
dbPassword := helper.GetEnv("POSTGRES_PASS", "password")
dbUser := helper.GetEnv("POSTGRES_API_USER", "arbeit_zeit")
dbPassword := helper.GetEnv("POSTGRES_API_PASS", "password")
connStr := fmt.Sprintf("postgres://%s:%s@%s:5432/%s?sslmode=disable&TimeZone=Europe/Berlin", dbUser, dbPassword, dbHost, dbName)
return sql.Open("postgres", connStr)