Skip to content

Commit ba109cb

Browse files
committed
Update postgres examples to be 18+ compatible
When starting the postgres examples, users are met with an error from the postgres container stating that the volume should be changed. Signed-off-by: Jonas Kalderstam <jonas@cowboyprogrammer.org>
1 parent a74a9f4 commit ba109cb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/docker-compose-fpm-alpine.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
container_name: roundcubedb
2727
# restart: unless-stopped
2828
volumes:
29-
- ./db/postgres:/var/lib/postgresql/data
29+
- ./db/postgres:/var/lib/postgresql
3030
environment:
3131
- POSTGRES_DB=roundcube
3232
- POSTGRES_USER=roundcube

examples/docker-compose-fpm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
container_name: roundcubedb
2727
# restart: unless-stopped
2828
volumes:
29-
- ./db/postgres:/var/lib/postgresql/data
29+
- ./db/postgres:/var/lib/postgresql
3030
environment:
3131
- POSTGRES_DB=roundcube
3232
- POSTGRES_USER=roundcube

examples/kubernetes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ spec:
114114
ports:
115115
- containerPort: 5432
116116
volumeMounts:
117-
- mountPath: /var/lib/postgresql/data
117+
- mountPath: /var/lib/postgresql
118118
name: roundcubedb-volume
119119
restartPolicy: Always
120120
serviceAccountName: ""

0 commit comments

Comments
 (0)