Remove mongodb_exporter

This commit is contained in:
Daniel Berteaud 2023-08-25 00:18:53 +02:00
parent 2d4f219dcc
commit 8032057255
3 changed files with 8 additions and 5 deletions

View File

@ -1,2 +0,0 @@
FROM percona/mongodb_exporter:0.39.0
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>

View File

@ -8,7 +8,8 @@ RUN set -eu &&\
apk --no-cache add curl ca-certificates unzip &&\
cd /tmp &&\
curl -sSLO https://www.ubnt.com/downloads/unifi/${UNIFI_VERSION}/UniFi.unix.zip &&\
unzip UniFi.unix.zip
unzip UniFi.unix.zip &&\
rm -f UniFi/bin/mongod
FROM danielberteaud/java:11-alpine
MAINTAINER Daniel Berteaud <dbd@ehtrace.com>

View File

@ -2,7 +2,7 @@ job "unifi" {
datacenters = [[ .nomad.datacenters | toJSON ]]
group "controller" {
group "unifi" {
network {
mode = "bridge"
@ -22,6 +22,10 @@ job "unifi" {
local_bind_port = 3128
}
[[- end ]]
upstreams {
destination_name = [[ .mail.smtp_service_name | toJSON ]]
local_bind_port = 25
}
}
}
sidecar_task {
@ -130,7 +134,7 @@ _EOF
[[ template "common/resources.tpl" .unifi.nginx.resources ]]
}
task "unifi" {
task "controller" {
leader = true
driver = [[ .unifi.controller.driver | toJSON ]]