Update wordpress.yaml
This commit is contained in:
1 parent
1430f4fd54
commit
0a51ac0a31
1 file changed
+20
@@ -13,6 +13,20 @@ spec:
|
||||
labels:
|
||||
app: wordpress
|
||||
spec:
|
||||
initContainers:
|
||||
- name: init-pg4wp
|
||||
image: hub.hamdocker.ir/library/busybox:latest
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
wget -O /tmp/pg4wp.zip https://github.com/kevinoid/postgresql-for-wordpress/archive/refs/heads/master.zip
|
||||
unzip /tmp/pg4wp.zip -d /var/www/html/wp-content/plugins/
|
||||
mv /var/www/html/wp-content/plugins/postgresql-for-wordpress-master /var/www/html/wp-content/plugins/pg4wp
|
||||
cp /var/www/html/wp-content/plugins/pg4wp/db.php /var/www/html/wp-content/db.php
|
||||
volumeMounts:
|
||||
- name: wordpress-data
|
||||
mountPath: /var/www/html
|
||||
containers:
|
||||
- name: wordpress
|
||||
image: wordpress:latest
|
||||
@@ -27,6 +41,12 @@ spec:
|
||||
value: "wordpress"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: wordpress-data
|
||||
mountPath: /var/www/html
|
||||
volumes:
|
||||
- name: wordpress-data
|
||||
emptyDir: {}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
Reference in new issue
Block a user