Update env in immich deployment
This commit is contained in:
@@ -17,6 +17,10 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
|
- name: IMMICH_PORT
|
||||||
|
value: "2283"
|
||||||
|
- name: REDIS_PORT
|
||||||
|
value: "6379"
|
||||||
- name: DB_DATABASE_NAME
|
- name: DB_DATABASE_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package immich
|
package immich
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"danicos.dev/daniel/go-kube/pkg/kube"
|
"danicos.dev/daniel/go-kube/pkg/kube"
|
||||||
"danicos.dev/daniel/go-kube/pkg/stack"
|
"danicos.dev/daniel/go-kube/pkg/stack"
|
||||||
"danicos.dev/daniel/homelab/pkg/postgres"
|
"danicos.dev/daniel/homelab/pkg/postgres"
|
||||||
@@ -76,7 +78,10 @@ func Deployment() apps.Deployment {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
envMapping := map[string]string{}
|
envMapping := map[string]string{
|
||||||
|
"REDIS_PORT": fmt.Sprintf("%d", RedisPort),
|
||||||
|
"IMMICH_PORT": fmt.Sprintf("%d", root.Immich.Port),
|
||||||
|
}
|
||||||
secretMapping := map[string]string{
|
secretMapping := map[string]string{
|
||||||
"DB_HOSTNAME": Secret.DBHostKey,
|
"DB_HOSTNAME": Secret.DBHostKey,
|
||||||
"DB_PORT": Secret.DBPortKey,
|
"DB_PORT": Secret.DBPortKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user