diff --git a/apps/nextcloud/deployment.yaml b/apps/nextcloud/deployment.yaml index cec8770..a21ebab 100644 --- a/apps/nextcloud/deployment.yaml +++ b/apps/nextcloud/deployment.yaml @@ -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