going nginx/fpm

This commit is contained in:
2021-08-19 15:14:00 +02:00
parent 8dd75bef5d
commit d1d240f4e3

View File

@@ -21,7 +21,24 @@ spec:
app: nextcloud
release: latest
spec:
volumes:
- name: nextcloud-nginx-site
configMap:
name: nextcloud-nginx-site
- name: www-data
emptyDir: {}
containers:
- name: nginx-proxy
image: nginx:latest
volumeMounts:
- name: nextcloud-nginx-site
mountPath: /etc/nginx/conf.d
- name: www-data
mountPath: /var/www/html
ports:
- name: http
containerPort: 80
protocol: TCP
- name: nextcloud
image: cr.lan/nextcloud:latest
lifecycle:
@@ -29,6 +46,9 @@ spec:
exec:
command:
- /post-start.sh
volumeMounts:
- name: www-data
mountPath: /var/www/html
env:
- name: TZ
value: "Europe/Berlin"
@@ -57,8 +77,8 @@ spec:
- name: OBJECTSTORE_S3_SSL
value: "true"
ports:
- name: http
containerPort: 80
- name: php-fpm
containerPort: 9000
protocol: TCP
# startupProbe:
# httpGet:
@@ -79,6 +99,7 @@ spec:
limits:
memory: "768Mi"
cpu: "3000m"
---
apiVersion: v1
kind: Service