Skip to content
Snippets Groups Projects
Commit 2da0f92f authored by Tim Smith's avatar Tim Smith
Browse files

Change postgres mount dir and pgdata to make persistent data work

parent 36e427c5
No related branches found
No related tags found
1 merge request!31Change postgres mount dir and pgdata to make persistent data work
Loading
Loading
@@ -13,6 +13,7 @@ data:
mattermost_app_uid: aadas
postgres_user: gitlab
postgres_db: gitlab_production
postgres_pgdata: /var/lib/postgresql/data/pgdata
---
apiVersion: v1
kind: Secret
Loading
Loading
Loading
Loading
@@ -32,11 +32,16 @@ spec:
key: postgres_db
- name: DB_EXTENSION
value: pg_trgm
- name: PGDATA
valueFrom:
configMapKeyRef:
name: gitlab-config
key: postgres_pgdata
ports:
- name: postgres
containerPort: 5432
volumeMounts:
- mountPath: /var/lib/postgresql
- mountPath: /var/lib/postgresql/data
name: data
- mountPath: /docker-entrypoint-initdb.d
name: initdb
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment