Skip to content

Commit

Permalink
Update default.provisioners.yaml - postgres:17 and mongo:8 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Oct 11, 2024
2 parents 0fab501 + bffd105 commit ceb8264
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/command/default.provisioners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit ceb8264

Please sign in to comment.