84 lines
2 KiB
YAML
84 lines
2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: app
|
|
name: app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: app
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: app
|
|
spec:
|
|
initContainers:
|
|
- image: busybox
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
- mkdir -p /app/data/state/log ; chmod -R 777 /app/data/state
|
|
name: mkdirs
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data/state
|
|
containers:
|
|
- env:
|
|
- name: APPLICATION_URL
|
|
value: uploader.martyn.berlin
|
|
- name: CANARY
|
|
value: "true"
|
|
- name: OFFICE_URL
|
|
value: http://wopi:9980
|
|
- name: OFFICE_FILESTASH
|
|
value: http://app:8334
|
|
- name: OFFICE_REWRITE_URL
|
|
value: http://127.0.0.1:9980
|
|
image: machines/filestash:latest
|
|
name: filestash
|
|
ports:
|
|
- containerPort: 8334
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /app/data/state
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: filestash-data
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: wopi
|
|
name: wopi
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: wopi
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: wopi
|
|
spec:
|
|
containers:
|
|
- command:
|
|
- /bin/bash
|
|
- -c
|
|
- curl -o /usr/share/coolwsd/browser/dist/branding-desktop.css https://gist.githubusercontent.com/mickael-kerjean/bc1f57cd312cf04731d30185cc4e7ba2/raw/d706dcdf23c21441e5af289d871b33defc2770ea/destop.css ; /bin/su -s /bin/bash -c '/start-collabora-online.sh' cool
|
|
env:
|
|
- name: extra_params
|
|
value: "--o:ssl.enable=false"
|
|
- name: aliasgroup1
|
|
value: "https://.*:443"
|
|
image: collabora/code:24.04.10.2.1
|
|
name: collabora
|
|
ports:
|
|
- containerPort: 9980
|
|
securityContext:
|
|
runAsUser: 0
|