Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default.provisioners.yaml - postgres:17 and mongo:8 #180

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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