diff --git a/airsonic.tf b/airsonic.tf index f942ec8..a5a4bc2 100644 --- a/airsonic.tf +++ b/airsonic.tf @@ -48,6 +48,11 @@ resource "docker_container" "airsonic" { type = "bind" } + volumes { + container_path = "/data" + volume_name = "truenas-arr" + } + networks_advanced { name = docker_network.bridge.name ipv4_address = "192.168.2.83" diff --git a/terraform.tfstate b/terraform.tfstate index 6bd114f..0f80359 100644 --- a/terraform.tfstate +++ b/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.5.5", - "serial": 4777, + "serial": 4780, "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "outputs": {}, "resources": [ @@ -781,9 +781,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": [], - "dns_opts": [], - "dns_search": [], + "dns": null, + "dns_opts": null, + "dns_search": null, "domainname": "", "entrypoint": [ "entry.sh" @@ -795,7 +795,7 @@ ], "exit_code": null, "gpus": null, - "group_add": [], + "group_add": null, "healthcheck": [ { "interval": "15s", @@ -809,8 +809,8 @@ } ], "host": [], - "hostname": "ee0eccb3e84d", - "id": "ee0eccb3e84ddc917acf29535870ba1586c82c0913700efef6b370b0047e0414", + "hostname": "d7406d919476", + "id": "d7406d919476cd61ee01a68cecff9f6ce788fab9bcc0f3f62a509411293b5808", "image": "sha256:b2b95105cdb73911ee4cf4ed7bd9ffd13229056a612d6fdbeae19ed7cc6808ab", "init": false, "ipc_mode": "private", @@ -827,7 +827,7 @@ "mounts": [ { "bind_options": [], - "read_only": false, + "read_only": null, "source": "/share/appdata/airsonic/data", "target": "/var/airsonic", "tmpfs_options": [], @@ -836,7 +836,7 @@ }, { "bind_options": [], - "read_only": false, + "read_only": null, "source": "/share/appdata/airsonic/music", "target": "/var/music", "tmpfs_options": [], @@ -845,7 +845,7 @@ }, { "bind_options": [], - "read_only": false, + "read_only": null, "source": "/share/appdata/airsonic/playlists", "target": "/var/playlists", "tmpfs_options": [], @@ -854,7 +854,7 @@ }, { "bind_options": [], - "read_only": false, + "read_only": null, "source": "/share/appdata/airsonic/podcasts", "target": "/var/podcasts", "tmpfs_options": [], @@ -882,7 +882,7 @@ "ip_address": "192.168.2.83", "ip_prefix_length": 24, "ipv6_gateway": "", - "mac_address": "02:42:2f:cd:93:b6", + "mac_address": "02:42:8a:ef:13:57", "network_name": "qnet-static-eth0-48e715" } ], @@ -916,21 +916,23 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": {}, - "sysctls": {}, - "tmpfs": {}, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, "tty": false, - "ulimit": [ - { - "hard": 65535, - "name": "nofile", - "soft": 65535 - } - ], + "ulimit": [], "upload": [], "user": "0:0", "userns_mode": "", - "volumes": [], + "volumes": [ + { + "container_path": "/data", + "from_container": "", + "host_path": "", + "read_only": null, + "volume_name": "truenas-arr" + } + ], "wait": false, "wait_timeout": 60, "working_dir": "/var" @@ -938,11 +940,8 @@ "sensitive_attributes": [], "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", "dependencies": [ - "data.docker_registry_image.airsonic", - "data.docker_registry_image.mariadb", "docker_container.mariadb", "docker_image.airsonic", - "docker_image.mariadb", "docker_network.bridge", "docker_network.mariadb" ] @@ -3453,9 +3452,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": null, - "dns_opts": null, - "dns_search": null, + "dns": [], + "dns_opts": [], + "dns_search": [], "domainname": "", "entrypoint": [ "/init" @@ -3467,8 +3466,8 @@ ], "exit_code": null, "gpus": null, - "group_add": null, - "healthcheck": null, + "group_add": [], + "healthcheck": [], "host": [], "hostname": "daddff4ff9b7", "id": "daddff4ff9b741ab69851e855da5f526d3b9ddc4136436f2494b18491af571ed", @@ -3477,7 +3476,7 @@ "ipc_mode": "private", "labels": [], "log_driver": "local", - "log_opts": null, + "log_opts": {}, "logs": false, "max_retry_count": 0, "memory": 0, @@ -3485,7 +3484,7 @@ "mounts": [ { "bind_options": [], - "read_only": null, + "read_only": false, "source": "/share/appdata/lidarr", "target": "/config", "tmpfs_options": [], @@ -3531,11 +3530,17 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": null, - "sysctls": null, - "tmpfs": null, + "storage_opts": {}, + "sysctls": {}, + "tmpfs": {}, "tty": false, - "ulimit": [], + "ulimit": [ + { + "hard": 65535, + "name": "nofile", + "soft": 65535 + } + ], "upload": [], "user": "", "userns_mode": "", @@ -3544,7 +3549,7 @@ "container_path": "/data", "from_container": "", "host_path": "", - "read_only": null, + "read_only": false, "volume_name": "truenas-arr" } ], @@ -3555,6 +3560,7 @@ "sensitive_attributes": [], "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", "dependencies": [ + "data.docker_registry_image.lidarr", "docker_image.lidarr", "docker_network.bridge" ] @@ -3808,7 +3814,7 @@ "ip_address": "192.168.2.115", "ip_prefix_length": 24, "ipv6_gateway": "", - "mac_address": "02:42:60:e0:32:bf", + "mac_address": "02:42:29:87:cf:c7", "network_name": "qnet-static-eth0-48e715" } ], @@ -4203,16 +4209,6 @@ "must_run": true, "name": "photoprism", "network_data": [ - { - "gateway": "192.168.2.1", - "global_ipv6_address": "", - "global_ipv6_prefix_length": 0, - "ip_address": "192.168.2.116", - "ip_prefix_length": 24, - "ipv6_gateway": "", - "mac_address": "02:42:e2:4d:c0:78", - "network_name": "qnet-static-eth0-48e715" - }, { "gateway": "172.29.0.1", "global_ipv6_address": "", @@ -4222,6 +4218,16 @@ "ipv6_gateway": "", "mac_address": "02:42:ac:1d:00:03", "network_name": "mariadb" + }, + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.116", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:e2:4d:c0:78", + "network_name": "qnet-static-eth0-48e715" } ], "network_mode": "default", diff --git a/terraform.tfstate.backup b/terraform.tfstate.backup index 43d2f18..6bd114f 100644 --- a/terraform.tfstate.backup +++ b/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.5.5", - "serial": 4775, + "serial": 4777, "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "outputs": {}, "resources": [ @@ -3007,9 +3007,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": null, - "dns_opts": null, - "dns_search": null, + "dns": [], + "dns_opts": [], + "dns_search": [], "domainname": "", "entrypoint": [ "/bin/sh", @@ -3022,7 +3022,7 @@ ], "exit_code": null, "gpus": null, - "group_add": null, + "group_add": [], "healthcheck": [ { "interval": "30s", @@ -3043,7 +3043,7 @@ "ipc_mode": "private", "labels": [], "log_driver": "local", - "log_opts": null, + "log_opts": {}, "logs": false, "max_retry_count": 0, "memory": 0, @@ -3051,7 +3051,7 @@ "mounts": [ { "bind_options": [], - "read_only": null, + "read_only": false, "source": "/share/appdata/homer", "target": "/www/assets", "tmpfs_options": [], @@ -3113,11 +3113,17 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": null, - "sysctls": null, - "tmpfs": null, + "storage_opts": {}, + "sysctls": {}, + "tmpfs": {}, "tty": false, - "ulimit": [], + "ulimit": [ + { + "hard": 65535, + "name": "nofile", + "soft": 65535 + } + ], "upload": [], "user": "1000:1000", "userns_mode": "", @@ -3427,6 +3433,134 @@ } ] }, + { + "mode": "managed", + "type": "docker_container", + "name": "lidarr", + "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "attach": false, + "bridge": "", + "capabilities": [], + "cgroupns_mode": null, + "command": [], + "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": [ + "/init" + ], + "env": [ + "PGID=1000", + "PUID=1000", + "TZ=Europe/Amsterdam" + ], + "exit_code": null, + "gpus": null, + "group_add": null, + "healthcheck": null, + "host": [], + "hostname": "daddff4ff9b7", + "id": "daddff4ff9b741ab69851e855da5f526d3b9ddc4136436f2494b18491af571ed", + "image": "sha256:b9bf498f0d7be2964cd036d202d7059a6d727b92a1a80c0f60f550905d51fc1b", + "init": false, + "ipc_mode": "private", + "labels": [], + "log_driver": "local", + "log_opts": null, + "logs": false, + "max_retry_count": 0, + "memory": 0, + "memory_swap": 0, + "mounts": [ + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/lidarr", + "target": "/config", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + } + ], + "must_run": true, + "name": "lidarr", + "network_data": [ + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.154", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:23:13:84:bb", + "network_name": "qnet-static-eth0-48e715" + } + ], + "network_mode": "default", + "networks_advanced": [ + { + "aliases": [], + "ipv4_address": "192.168.2.154", + "ipv6_address": "", + "name": "qnet-static-eth0-48e715" + } + ], + "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": [ + { + "container_path": "/data", + "from_container": "", + "host_path": "", + "read_only": null, + "volume_name": "truenas-arr" + } + ], + "wait": false, + "wait_timeout": 60, + "working_dir": "/" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "docker_image.lidarr", + "docker_network.bridge" + ] + } + ] + }, { "mode": "managed", "type": "docker_container", @@ -3493,16 +3627,6 @@ "must_run": true, "name": "mariadb", "network_data": [ - { - "gateway": "192.168.2.1", - "global_ipv6_address": "", - "global_ipv6_prefix_length": 0, - "ip_address": "192.168.2.127", - "ip_prefix_length": 24, - "ipv6_gateway": "", - "mac_address": "02:42:d5:f9:ea:da", - "network_name": "qnet-static-eth0-48e715" - }, { "gateway": "172.29.0.1", "global_ipv6_address": "", @@ -3512,6 +3636,16 @@ "ipv6_gateway": "", "mac_address": "02:42:ac:1d:00:05", "network_name": "mariadb" + }, + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.127", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:d5:f9:ea:da", + "network_name": "qnet-static-eth0-48e715" } ], "network_mode": "default", @@ -4069,16 +4203,6 @@ "must_run": true, "name": "photoprism", "network_data": [ - { - "gateway": "172.29.0.1", - "global_ipv6_address": "", - "global_ipv6_prefix_length": 0, - "ip_address": "172.29.0.3", - "ip_prefix_length": 22, - "ipv6_gateway": "", - "mac_address": "02:42:ac:1d:00:03", - "network_name": "mariadb" - }, { "gateway": "192.168.2.1", "global_ipv6_address": "", @@ -4088,6 +4212,16 @@ "ipv6_gateway": "", "mac_address": "02:42:e2:4d:c0:78", "network_name": "qnet-static-eth0-48e715" + }, + { + "gateway": "172.29.0.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "172.29.0.3", + "ip_prefix_length": 22, + "ipv6_gateway": "", + "mac_address": "02:42:ac:1d:00:03", + "network_name": "mariadb" } ], "network_mode": "default",