fix: set PGDATA to subdirectory to prevent lost+found crash
This commit is contained in:
parent
f28fb34c6e
commit
99470cbc24
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: apps/v1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: newspaper-db
|
||||
|
|
@ -23,6 +23,8 @@ spec:
|
|||
value: mypassword
|
||||
- name: POSTGRES_DB
|
||||
value: mydatabase
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
volumeMounts:
|
||||
|
|
|
|||
Loading…
Reference in New Issue