Move zigbee2mqtt and mosquitto off qnap
Add truenass-arr volume (test)
This commit is contained in:
Marc Fokkert
2025-02-20 11:24:08 +01:00
parent 89a9006126
commit 5c66c7f8f4
5 changed files with 772 additions and 1275 deletions

View File

@@ -48,3 +48,11 @@ resource "docker_network" "host" {
name = "host" name = "host"
} }
resource "docker_volume" "truenas-arr" {
name = "truenas-arr"
driver_opts = {
type = "cifs",
device = "//truenas.local/arr-media"
o = "addr=truenas.local,username=dqnap,password=vPKnUmApyQRE5$n,file_mode=0777,dir_mode=0777"
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "1.5.5", "terraform_version": "1.5.5",
"serial": 4441, "serial": 4446,
"lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@@ -1688,7 +1688,7 @@
"healthcheck": null, "healthcheck": null,
"host": [], "host": [],
"hostname": "dozzle", "hostname": "dozzle",
"id": "7973008f6fcc6ac63bbb820d6ee9dbb8a42abe9c524d687d8de793a847adbd36", "id": "9bec64739d550e620887f544258486e008a664ea56f553978b5a80a7030f24f7",
"image": "sha256:a4d0be210f7ed7d190e8a7eaf9d3ebc833004181a9a5275fc5f4ebd9dee02c50", "image": "sha256:a4d0be210f7ed7d190e8a7eaf9d3ebc833004181a9a5275fc5f4ebd9dee02c50",
"init": false, "init": false,
"ipc_mode": "private", "ipc_mode": "private",
@@ -1720,7 +1720,7 @@
"ip_address": "192.168.2.144", "ip_address": "192.168.2.144",
"ip_prefix_length": 24, "ip_prefix_length": 24,
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:a1:49:e5:5d", "mac_address": "02:42:48:d5:ed:77",
"network_name": "qnet-static-eth0-48e715" "network_name": "qnet-static-eth0-48e715"
} }
], ],
@@ -1764,7 +1764,6 @@
"sensitive_attributes": [], "sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
"dependencies": [ "dependencies": [
"data.docker_registry_image.dozzle",
"docker_image.dozzle", "docker_image.dozzle",
"docker_network.bridge" "docker_network.bridge"
] ]
@@ -2082,9 +2081,9 @@
"cpu_shares": 0, "cpu_shares": 0,
"destroy_grace_seconds": null, "destroy_grace_seconds": null,
"devices": [], "devices": [],
"dns": null, "dns": [],
"dns_opts": null, "dns_opts": [],
"dns_search": null, "dns_search": [],
"domainname": "", "domainname": "",
"entrypoint": [ "entrypoint": [
"/usr/bin/dumb-init", "/usr/bin/dumb-init",
@@ -2100,8 +2099,8 @@
], ],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": null, "group_add": [],
"healthcheck": null, "healthcheck": [],
"host": [], "host": [],
"hostname": "a4689df71125", "hostname": "a4689df71125",
"id": "a4689df71125a923c2d5aa55973e7f19e81116742a14e5b089c6017c82ab026e", "id": "a4689df71125a923c2d5aa55973e7f19e81116742a14e5b089c6017c82ab026e",
@@ -2121,16 +2120,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": true, "read_only": false,
"source": "/etc/localtime",
"target": "/etc/localtime",
"tmpfs_options": [],
"type": "bind",
"volume_options": []
},
{
"bind_options": [],
"read_only": null,
"source": "/share/appdata/gitea/config", "source": "/share/appdata/gitea/config",
"target": "/etc/gitea", "target": "/etc/gitea",
"tmpfs_options": [], "tmpfs_options": [],
@@ -2139,12 +2129,21 @@
}, },
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/gitea/data", "source": "/share/appdata/gitea/data",
"target": "/var/lib/gitea", "target": "/var/lib/gitea",
"tmpfs_options": [], "tmpfs_options": [],
"type": "bind", "type": "bind",
"volume_options": [] "volume_options": []
},
{
"bind_options": [],
"read_only": true,
"source": "/etc/localtime",
"target": "/etc/localtime",
"tmpfs_options": [],
"type": "bind",
"volume_options": []
} }
], ],
"must_run": true, "must_run": true,
@@ -2157,7 +2156,7 @@
"ip_address": "192.168.2.131", "ip_address": "192.168.2.131",
"ip_prefix_length": 24, "ip_prefix_length": 24,
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:89:e5:e0:b7", "mac_address": "02:42:c7:67:dc:c6",
"network_name": "qnet-static-eth0-48e715" "network_name": "qnet-static-eth0-48e715"
} }
], ],
@@ -2185,11 +2184,17 @@
"stdin_open": false, "stdin_open": false,
"stop_signal": "", "stop_signal": "",
"stop_timeout": 0, "stop_timeout": 0,
"storage_opts": null, "storage_opts": {},
"sysctls": null, "sysctls": {},
"tmpfs": null, "tmpfs": {},
"tty": false, "tty": false,
"ulimit": [], "ulimit": [
{
"hard": 65535,
"name": "nofile",
"soft": 65535
}
],
"upload": [], "upload": [],
"user": "1000:1000", "user": "1000:1000",
"userns_mode": "", "userns_mode": "",
@@ -3034,9 +3039,9 @@
"cpu_shares": 0, "cpu_shares": 0,
"destroy_grace_seconds": null, "destroy_grace_seconds": null,
"devices": [], "devices": [],
"dns": null, "dns": [],
"dns_opts": null, "dns_opts": [],
"dns_search": null, "dns_search": [],
"domainname": "", "domainname": "",
"entrypoint": [ "entrypoint": [
"/init" "/init"
@@ -3044,8 +3049,8 @@
"env": [], "env": [],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": null, "group_add": [],
"healthcheck": null, "healthcheck": [],
"host": [], "host": [],
"hostname": "hass", "hostname": "hass",
"id": "6fe531251c81d58fb472c30af75fd6278a157ed00987e467d08a9e4c49e15746", "id": "6fe531251c81d58fb472c30af75fd6278a157ed00987e467d08a9e4c49e15746",
@@ -3065,7 +3070,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/home-assistant", "source": "/share/appdata/home-assistant",
"target": "/config", "target": "/config",
"tmpfs_options": [], "tmpfs_options": [],
@@ -3127,11 +3132,17 @@
"stdin_open": false, "stdin_open": false,
"stop_signal": "", "stop_signal": "",
"stop_timeout": 0, "stop_timeout": 0,
"storage_opts": null, "storage_opts": {},
"sysctls": null, "sysctls": {},
"tmpfs": null, "tmpfs": {},
"tty": false, "tty": false,
"ulimit": [], "ulimit": [
{
"hard": 65535,
"name": "nofile",
"soft": 65535
}
],
"upload": [], "upload": [],
"user": "", "user": "",
"userns_mode": "", "userns_mode": "",
@@ -3476,9 +3487,9 @@
"cpu_shares": 0, "cpu_shares": 0,
"destroy_grace_seconds": null, "destroy_grace_seconds": null,
"devices": [], "devices": [],
"dns": null, "dns": [],
"dns_opts": null, "dns_opts": [],
"dns_search": null, "dns_search": [],
"domainname": "", "domainname": "",
"entrypoint": [ "entrypoint": [
"docker-entrypoint.sh" "docker-entrypoint.sh"
@@ -3488,8 +3499,8 @@
], ],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": null, "group_add": [],
"healthcheck": null, "healthcheck": [],
"host": [], "host": [],
"hostname": "52f166f7f498", "hostname": "52f166f7f498",
"id": "52f166f7f49837e208f7244f3d7ad5dfc52385d49132ee4a7edc5f3a49b922bc", "id": "52f166f7f49837e208f7244f3d7ad5dfc52385d49132ee4a7edc5f3a49b922bc",
@@ -3509,7 +3520,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/mariadb", "source": "/share/appdata/mariadb",
"target": "/var/lib/mysql", "target": "/var/lib/mysql",
"tmpfs_options": [], "tmpfs_options": [],
@@ -3571,11 +3582,17 @@
"stdin_open": false, "stdin_open": false,
"stop_signal": "", "stop_signal": "",
"stop_timeout": 0, "stop_timeout": 0,
"storage_opts": null, "storage_opts": {},
"sysctls": null, "sysctls": {},
"tmpfs": null, "tmpfs": {},
"tty": false, "tty": false,
"ulimit": [], "ulimit": [
{
"hard": 65535,
"name": "nofile",
"soft": 65535
}
],
"upload": [], "upload": [],
"user": "", "user": "",
"userns_mode": "", "userns_mode": "",
@@ -5280,6 +5297,134 @@
} }
] ]
}, },
{
"mode": "managed",
"type": "docker_container",
"name": "redis",
"provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]",
"instances": [
{
"schema_version": 2,
"attributes": {
"attach": false,
"bridge": "",
"capabilities": [],
"cgroupns_mode": null,
"command": [
"redis-server",
"/data/redis.conf",
"--save 900 1",
"--appendonly yes",
"--appendfilename \"appendonly.aof\"",
"--dir \"/data\"",
"--requirepass uM7A2HCZTClCmHDQ3jJ"
],
"container_logs": null,
"container_read_refresh_timeout_milliseconds": 15000,
"cpu_set": "",
"cpu_shares": 0,
"destroy_grace_seconds": null,
"devices": [],
"dns": null,
"dns_opts": null,
"dns_search": null,
"domainname": "",
"entrypoint": [
"docker-entrypoint.sh"
],
"env": [],
"exit_code": null,
"gpus": null,
"group_add": null,
"healthcheck": null,
"host": [],
"hostname": "3d439ceda6ea",
"id": "3d439ceda6ea2128f6a79531ded2f8cb5141f73cb3b2af36947ae4e6fbdcd634",
"image": "sha256:fa310398637f52276a6ea3250b80ebac162323d76209a4a3d95a414b73d3cc84",
"init": false,
"ipc_mode": "private",
"labels": [],
"log_driver": "json-file",
"log_opts": {
"max-file": "10",
"max-size": "10m"
},
"logs": false,
"max_retry_count": 0,
"memory": 0,
"memory_swap": 0,
"mounts": [
{
"bind_options": [],
"read_only": null,
"source": "/share/appdata/redis",
"target": "/data",
"tmpfs_options": [],
"type": "bind",
"volume_options": []
}
],
"must_run": true,
"name": "redis",
"network_data": [
{
"gateway": "172.29.20.1",
"global_ipv6_address": "",
"global_ipv6_prefix_length": 0,
"ip_address": "172.29.20.2",
"ip_prefix_length": 22,
"ipv6_gateway": "",
"mac_address": "02:42:ac:1d:14:02",
"network_name": "redis"
}
],
"network_mode": "default",
"networks_advanced": [
{
"aliases": [],
"ipv4_address": "",
"ipv6_address": "",
"name": "redis"
}
],
"pid_mode": "",
"ports": [],
"privileged": false,
"publish_all_ports": false,
"read_only": false,
"remove_volumes": true,
"restart": "always",
"rm": false,
"runtime": "runc",
"security_opts": [],
"shm_size": 64,
"start": true,
"stdin_open": false,
"stop_signal": "",
"stop_timeout": 0,
"storage_opts": null,
"sysctls": null,
"tmpfs": null,
"tty": false,
"ulimit": [],
"upload": [],
"user": "",
"userns_mode": "",
"volumes": [],
"wait": false,
"wait_timeout": 60,
"working_dir": "/data"
},
"sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
"dependencies": [
"data.docker_registry_image.redis",
"docker_image.redis",
"docker_network.redis"
]
}
]
},
{ {
"mode": "managed", "mode": "managed",
"type": "docker_container", "type": "docker_container",
@@ -5854,8 +5999,8 @@
"dns": [ "dns": [
"172.20.0.0" "172.20.0.0"
], ],
"dns_opts": null, "dns_opts": [],
"dns_search": null, "dns_search": [],
"domainname": "", "domainname": "",
"entrypoint": [ "entrypoint": [
"/init" "/init"
@@ -5865,8 +6010,8 @@
], ],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": null, "group_add": [],
"healthcheck": null, "healthcheck": [],
"host": [], "host": [],
"hostname": "36ff3d6461ca", "hostname": "36ff3d6461ca",
"id": "36ff3d6461ca983452231f5ca470e3163d86dd2512c21d573c2eadeb31e603c8", "id": "36ff3d6461ca983452231f5ca470e3163d86dd2512c21d573c2eadeb31e603c8",
@@ -5886,7 +6031,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/smokeping/config", "source": "/share/appdata/smokeping/config",
"target": "/config", "target": "/config",
"tmpfs_options": [], "tmpfs_options": [],
@@ -5895,7 +6040,7 @@
}, },
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/smokeping/data", "source": "/share/appdata/smokeping/data",
"target": "/data", "target": "/data",
"tmpfs_options": [], "tmpfs_options": [],
@@ -5941,11 +6086,17 @@
"stdin_open": false, "stdin_open": false,
"stop_signal": "", "stop_signal": "",
"stop_timeout": 0, "stop_timeout": 0,
"storage_opts": null, "storage_opts": {},
"sysctls": null, "sysctls": {},
"tmpfs": null, "tmpfs": {},
"tty": false, "tty": false,
"ulimit": [], "ulimit": [
{
"hard": 65535,
"name": "nofile",
"soft": 65535
}
],
"upload": [], "upload": [],
"user": "", "user": "",
"userns_mode": "", "userns_mode": "",
@@ -6407,9 +6558,9 @@
"cpu_shares": 0, "cpu_shares": 0,
"destroy_grace_seconds": null, "destroy_grace_seconds": null,
"devices": [], "devices": [],
"dns": null, "dns": [],
"dns_opts": null, "dns_opts": [],
"dns_search": null, "dns_search": [],
"domainname": "", "domainname": "",
"entrypoint": [ "entrypoint": [
"/usr/local/bin/docker-entrypoint.sh" "/usr/local/bin/docker-entrypoint.sh"
@@ -6417,7 +6568,7 @@
"env": [], "env": [],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": null, "group_add": [],
"healthcheck": [ "healthcheck": [
{ {
"interval": "0s", "interval": "0s",
@@ -6449,7 +6600,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/unifi", "source": "/share/appdata/unifi",
"target": "/unifi", "target": "/unifi",
"tmpfs_options": [], "tmpfs_options": [],
@@ -6495,11 +6646,17 @@
"stdin_open": false, "stdin_open": false,
"stop_signal": "", "stop_signal": "",
"stop_timeout": 0, "stop_timeout": 0,
"storage_opts": null, "storage_opts": {},
"sysctls": null, "sysctls": {},
"tmpfs": null, "tmpfs": {},
"tty": false, "tty": false,
"ulimit": [], "ulimit": [
{
"hard": 65535,
"name": "nofile",
"soft": 65535
}
],
"upload": [], "upload": [],
"user": "", "user": "",
"userns_mode": "", "userns_mode": "",
@@ -8016,6 +8173,36 @@
} }
] ]
}, },
{
"mode": "managed",
"type": "docker_image",
"name": "redis",
"provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"build": [],
"force_remove": null,
"id": "sha256:fa310398637f52276a6ea3250b80ebac162323d76209a4a3d95a414b73d3cc84redis:latest",
"image_id": "sha256:fa310398637f52276a6ea3250b80ebac162323d76209a4a3d95a414b73d3cc84",
"keep_locally": null,
"name": "redis:latest",
"platform": null,
"pull_triggers": [
"sha256:93a8d83b707d0d6a1b9186edecca2e37f83722ae0e398aee4eea0ff17c2fad0e"
],
"repo_digest": "redis@sha256:93a8d83b707d0d6a1b9186edecca2e37f83722ae0e398aee4eea0ff17c2fad0e",
"triggers": null
},
"sensitive_attributes": [],
"private": "bnVsbA==",
"dependencies": [
"data.docker_registry_image.redis"
]
}
]
},
{ {
"mode": "managed", "mode": "managed",
"type": "docker_image", "type": "docker_image",