Update
Move zigbee2mqtt and mosquitto off qnap Add truenass-arr volume (test)
This commit is contained in:
49
_disabled/mosquitto.tf
Normal file
49
_disabled/mosquitto.tf
Normal file
@@ -0,0 +1,49 @@
|
||||
data "docker_registry_image" "mosquitto" {
|
||||
name = "eclipse-mosquitto:2"
|
||||
}
|
||||
|
||||
resource "docker_image" "mosquitto" {
|
||||
name = data.docker_registry_image.mosquitto.name
|
||||
pull_triggers = [data.docker_registry_image.mosquitto.sha256_digest]
|
||||
}
|
||||
|
||||
resource "docker_network" "mosquitto" {
|
||||
name = "mosquitto"
|
||||
}
|
||||
|
||||
resource "docker_container" "mosquitto" {
|
||||
image = docker_image.mosquitto.image_id
|
||||
name = "mosquitto"
|
||||
|
||||
mounts {
|
||||
target = "/mosquitto/config"
|
||||
source = "/share/appdata/mosquitto/config"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
mounts {
|
||||
target = "/mosquitto/data"
|
||||
source = "/share/appdata/mosquitto/data"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
mounts {
|
||||
target = "/mosquitto/log"
|
||||
source = "/share/appdata/mosquitto/log"
|
||||
type = "bind"
|
||||
}
|
||||
|
||||
restart = "always"
|
||||
|
||||
networks_advanced {
|
||||
name = docker_network.bridge.name
|
||||
ipv4_address = "192.168.2.125"
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [
|
||||
ulimit,
|
||||
log_opts
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user