71 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: server
name: server
spec:
replicas: 1
selector:
matchLabels:
app: server
strategy:
type: Recreate
template:
metadata:
labels:
app: server
spec:
containers:
- args:
- start.sh
- microservices
envFrom:
- secretRef:
name: immich-secret
image: ghcr.io/immich-app/immich-server:release
name: microservices
ports:
- name: microservices
containerPort: 3002
hostPort: 3002
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /usr/src/app/upload
name: photos
subPath: upload
readOnly: false
- mountPath: /mnt/media/external
name: photos
readOnly: false
- args:
- start.sh
- immich
envFrom:
- secretRef:
name: immich-secret
image: ghcr.io/immich-app/immich-server:release
name: server
ports:
- name: server
containerPort: 3001
hostPort: 3001
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /usr/src/app/upload
name: photos
subPath: upload
readOnly: false
- mountPath: /mnt/media/external
name: photos
readOnly: false
restartPolicy: Always
volumes:
- name: photos
nfs:
server: 192.168.178.4
path: /mnt/photos
readOnly: false