From bffd105a70f4e7a4cda70d7a9f46cfeb12d71432 Mon Sep 17 00:00:00 2001
From: Mathieu Benoit <mathieu-benoit@hotmail.fr>
Date: Thu, 10 Oct 2024 12:58:55 -0400
Subject: [PATCH] Update default.provisioners.yaml - `postgres:17` and
 `mongo:8`

Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
---
 internal/command/default.provisioners.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/internal/command/default.provisioners.yaml b/internal/command/default.provisioners.yaml
index 3027608..1573906 100644
--- a/internal/command/default.provisioners.yaml
+++ b/internal/command/default.provisioners.yaml
@@ -145,7 +145,7 @@
   # Create 2 services, the first is the database itself, the second is the init container which runs the scripts
   services: |
     {{ dig .Init.sk "instanceServiceName" "" .Shared }}:
-      image: postgres:16-alpine
+      image: postgres:17-alpine
       restart: always
       environment:
         POSTGRES_USER: postgres
@@ -165,7 +165,7 @@
         timeout: 2s
         retries: 15
     {{ dig .Init.sk "instanceServiceName" "" .Shared }}-init:
-      image: postgres:16-alpine
+      image: postgres:17-alpine
       entrypoint: ["/bin/sh"]
       environment:
         POSTGRES_PASSWORD: {{ dig .Init.sk "instancePassword" "" .Shared | quote }}
@@ -185,7 +185,7 @@
         source: {{ .MountsDirectory }}/{{ dig .Init.sk "instanceServiceName" "" .Shared }}-db-scripts
         target: /db-scripts
   info_logs: |
-    - "{{.Uid}}: To connect to postgres, enter password {{ .State.password | squote }} at: \"docker run -it --network {{ .ComposeProjectName }}_default --rm postgres:16-alpine psql -h {{ dig .Init.sk "instanceServiceName" "" .Shared }} -U {{ .State.username }} --dbname {{ .State.database }}\""
+    - "{{.Uid}}: To connect to postgres, enter password {{ .State.password | squote }} at: \"docker run -it --network {{ .ComposeProjectName }}_default --rm postgres:17-alpine psql -h {{ dig .Init.sk "instanceServiceName" "" .Shared }} -U {{ .State.username }} --dbname {{ .State.database }}\""
     {{ if ne .Init.publishPort "0" }}
     - "{{.Uid}}: Or connect your postgres client to \"postgres://{{ .State.username }}:{{ .State.password }}@localhost:{{ .Init.publishPort }}/{{ .State.database }}\""
     {{ end }}
@@ -510,7 +510,7 @@
     {{ .State.serviceName }}:
       labels:
         dev.score.compose.res.uid: {{ .Uid }}
-      image: mongo:7
+      image: mongo:8
       restart: always
       environment:
         MONGO_INITDB_ROOT_USERNAME: {{ .State.username | quote }}