Skip to content

Commit

Permalink
fix: upgrade to postgresql 16
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Oct 26, 2023
1 parent a567335 commit f5feaa4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api/.env
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ APP_SECRET=!ChangeMe!
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="postgresql://app:!ChangeMe!@database:5432/app?serverVersion=15&charset=utf8"
DATABASE_URL="postgresql://app:!ChangeMe!@database:5432/app?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ###

###> nelmio/cors-bundle ###
Expand Down
2 changes: 1 addition & 1 deletion api/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ doctrine:

# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '15'
#server_version: '16'

profiling_collect_backtrace: '%kernel.debug%'
orm:
Expand Down
6 changes: 3 additions & 3 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
MERCURE_SUBSCRIBER_JWT_KEY: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
TRUSTED_PROXIES: ${TRUSTED_PROXIES:-127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16}
TRUSTED_HOSTS: ^${SERVER_NAME:-example\.com|localhost}|php$$
DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-15}&charset=${POSTGRES_CHARSET:-utf8}
DATABASE_URL: postgresql://${POSTGRES_USER:-app}:${POSTGRES_PASSWORD:-!ChangeMe!}@database:5432/${POSTGRES_DB:-app}?serverVersion=${POSTGRES_VERSION:-16}&charset=${POSTGRES_CHARSET:-utf8}
MERCURE_URL: ${CADDY_MERCURE_URL:-http://php/.well-known/mercure}
MERCURE_PUBLIC_URL: https://${SERVER_NAME:-localhost}/.well-known/mercure
MERCURE_JWT_SECRET: ${CADDY_MERCURE_JWT_SECRET:-!ChangeThisMercureHubJWTSecretKey!}
Expand Down Expand Up @@ -46,7 +46,7 @@ services:

###> doctrine/doctrine-bundle ###
database:
image: postgres:${POSTGRES_VERSION:-15}-alpine
image: postgres:${POSTGRES_VERSION:-16}-alpine
environment:
- POSTGRES_DB=${POSTGRES_DB:-app}
# You should definitely change the password in production
Expand All @@ -63,7 +63,7 @@ services:
###< symfony/mercure-bundle ###

keycloak-database:
image: postgres:${KEYCLOAK_POSTGRES_VERSION:-15}-alpine
image: postgres:${KEYCLOAK_POSTGRES_VERSION:-16}-alpine
environment:
POSTGRES_DB: ${KEYCLOAK_POSTGRES_DB:-keycloak}
# You should definitely change the password in production
Expand Down
6 changes: 3 additions & 3 deletions helm/api-platform/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami/
version: 12.1.15
version: 13.1.5
- name: external-dns
repository: https://charts.bitnami.com/bitnami/
version: 6.27.0
- name: keycloak
repository: https://charts.bitnami.com/bitnami/
version: 17.1.2
digest: sha256:4fbf7e2b9d3358c57a2c1f3b30b6bfca160ca1ce8a8eacc0ecb5ed06d89cc804
generated: "2023-10-26T12:35:05.873332346+02:00"
digest: sha256:04f3ebd50cc7b28a8cc072aa2e898904cc183cc3539f82cc736abed5c9192e27
generated: "2023-10-26T13:03:58.347134077+02:00"
2 changes: 1 addition & 1 deletion helm/api-platform/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ appVersion: 0.1.0

dependencies:
- name: postgresql
version: ~12.1.14
version: ~13.1.5
repository: https://charts.bitnami.com/bitnami/
condition: postgresql.enabled
- name: external-dns
Expand Down
4 changes: 2 additions & 2 deletions helm/api-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ postgresql:
pullPolicy: IfNotPresent
image:
repository: bitnami/postgresql
tag: 15
tag: 16
resources:
requests:
memory: 50Mi
Expand Down Expand Up @@ -128,7 +128,7 @@ keycloak:
pullPolicy: IfNotPresent
image:
repository: bitnami/postgresql
tag: 15
tag: 16
resources:
requests:
memory: 50Mi
Expand Down

0 comments on commit f5feaa4

Please sign in to comment.