Update wordpress.yaml

This commit is contained in:
gitea_admin committed 2026-10-02 20:34:23 +00:00
1 parent dfc4b6fdfc
commit a962de35a5
1 file changed
+2 -24
+2 -24
View File
@@ -13,26 +13,10 @@ spec:
labels:
app: wordpress
spec:
initContainers:
- name: init-pg4wp
image: hub.hamdocker.ir/library/alpine:latest
command:
- sh
- -c
- |
apk add --no-cache git
git clone http://gitea-http.gitea.svc.cluster.local:3000/gitea_admin/apps.git /tmp/repo
mkdir -p /var/www/html/wp-content/plugins/pg4wp
cp -r /tmp/repo/pg4wp/* /var/www/html/wp-content/plugins/pg4wp/
cp /tmp/repo/pg4wp/db.php /var/www/html/wp-content/db.php
volumeMounts:
- name: wordpress-data
mountPath: /var/www/html
containers:
- name: wordpress
image: wordpress:latest
command: ["/bin/sh", "-c"]
args: ["sed -i 's|deb.debian.org|mirror.iranserver.com|g' /etc/apt/sources.list.d/debian.sources && apt-get update && apt-get install -y libpq-dev && docker-php-ext-install pgsql pdo_pgsql && exec docker-entrypoint.sh apache2-foreground"]
image: gitea.ali.atestd.shop/gitea_admin/wordpress-pg:latest
imagePullPolicy: Never
env:
- name: WORDPRESS_DB_HOST
value: "postgresql:5432"
@@ -44,12 +28,6 @@ spec:
value: "wordpress"
ports:
- containerPort: 80
volumeMounts:
- name: wordpress-data
mountPath: /var/www/html
volumes:
- name: wordpress-data
emptyDir: {}
---
apiVersion: v1
kind: Service