From a06a3b58c010c29366a9358072640c7bac1a61b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Pavl=C3=AD=C4=8Dek?= Date: Sat, 2 May 2026 10:28:59 +0200 Subject: [PATCH] michal testing --- gowithdb/main.go | 2 +- gowithdb/zerops-service-import.yml | 7 ++++--- michaltesting/import.yaml | 6 ++++++ michaltesting/zerops.yaml | 0 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 michaltesting/import.yaml create mode 100644 michaltesting/zerops.yaml diff --git a/gowithdb/main.go b/gowithdb/main.go index c90c6f5..8eb7fb8 100644 --- a/gowithdb/main.go +++ b/gowithdb/main.go @@ -14,7 +14,7 @@ import ( ) func main() { - db, err := sql.Open("postgres", os.Getenv("DATABASE_CONNECTION_STRING")) + db, err := sql.Open("postgres", os.Getenv("DATABASE_CONNECTION_STRING")+"?sslmode=disable") if err != nil { panic(err) } diff --git a/gowithdb/zerops-service-import.yml b/gowithdb/zerops-service-import.yml index 7a7f2e0..6f4f616 100644 --- a/gowithdb/zerops-service-import.yml +++ b/gowithdb/zerops-service-import.yml @@ -1,7 +1,8 @@ services: - hostname: db - type: postgresql@16 - mode: NON_HA + type: postgresql@18 + mode: HA + verticalAutoscaling: + minFreeRamGB: 0.5 - hostname: app type: go@1 - maxContainers: 1 diff --git a/michaltesting/import.yaml b/michaltesting/import.yaml new file mode 100644 index 0000000..34a3390 --- /dev/null +++ b/michaltesting/import.yaml @@ -0,0 +1,6 @@ +services: + - type: postgresql:single@18 + hostname: singleandreadytomingle3 + profileId: custom + profileOverrides: + max_connections: kokos diff --git a/michaltesting/zerops.yaml b/michaltesting/zerops.yaml new file mode 100644 index 0000000..e69de29