Update to 8.0.26 and cleanup volumes

This commit is contained in:
Daniel Berteaud 2024-01-05 15:07:43 +01:00
parent e283bc39cb
commit fa90b04da7
3 changed files with 15 additions and 17 deletions

View File

@ -1,6 +1,6 @@
FROM [[ .docker.repo ]][[ .docker.base_images.java17.image ]] AS builder
ARG UNIFI_VERSION=8.0.24
ARG UNIFI_VERSION=8.0.26
RUN set -euxo pipefail &&\
apk --no-cache add curl ca-certificates unzip &&\

View File

@ -75,16 +75,11 @@ job [[ .unifi.instance | toJSON ]] {
}
}
[[ template "common/volumes" .unifi.volumes ]]
[[ template "common/volumes" .unifi.mongo.volumes ]]
[[- end ]]
volume "data" {
type = [[ .unifi.volumes.data.type | toJSON ]]
source = [[ .unifi.volumes.data.source | toJSON ]]
access_mode = "multi-node-multi-writer"
attachment_mode = "file-system"
}
[[ template "common/volumes" .unifi.controller.volumes ]]
[[ template "common/task.wait_for" $c ]]

View File

@ -17,7 +17,7 @@ unifi:
driver: docker
# The image for the controller
image: danielberteaud/unifi:8.0.24-1
image: '[[ .docker.repo ]]unifi:8.0.26-1'
# Resource allocation for the controller
resources:
@ -69,6 +69,12 @@ unifi:
#middlewares:
# - ip-trusted@file
# Volumes
volumes:
data:
type: csi
source: unifi-data
# The inform endpoint is used by the devices to contact the controller
inform:
# Public URL of the inform endpoint
@ -142,11 +148,8 @@ unifi:
cpu: 100
memory: 256
# Volumes
volumes:
data:
type: csi
source: unifi-data
mongo:
type: csi
source: unifi-mongo
# Volumes
volumes:
mongo:
type: csi
source: unifi-mongo