Update airsonic to use datarr

This commit is contained in:
Marc Fokkert
2025-03-04 16:57:13 +01:00
parent b1e9cd43ee
commit 6f8c880f67
3 changed files with 225 additions and 80 deletions

View File

@@ -48,6 +48,11 @@ resource "docker_container" "airsonic" {
type = "bind" type = "bind"
} }
volumes {
container_path = "/data"
volume_name = "truenas-arr"
}
networks_advanced { networks_advanced {
name = docker_network.bridge.name name = docker_network.bridge.name
ipv4_address = "192.168.2.83" ipv4_address = "192.168.2.83"

View File

@@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "1.5.5", "terraform_version": "1.5.5",
"serial": 4777, "serial": 4780,
"lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@@ -781,9 +781,9 @@
"cpu_shares": 0, "cpu_shares": 0,
"destroy_grace_seconds": null, "destroy_grace_seconds": null,
"devices": [], "devices": [],
"dns": [], "dns": null,
"dns_opts": [], "dns_opts": null,
"dns_search": [], "dns_search": null,
"domainname": "", "domainname": "",
"entrypoint": [ "entrypoint": [
"entry.sh" "entry.sh"
@@ -795,7 +795,7 @@
], ],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": [], "group_add": null,
"healthcheck": [ "healthcheck": [
{ {
"interval": "15s", "interval": "15s",
@@ -809,8 +809,8 @@
} }
], ],
"host": [], "host": [],
"hostname": "ee0eccb3e84d", "hostname": "d7406d919476",
"id": "ee0eccb3e84ddc917acf29535870ba1586c82c0913700efef6b370b0047e0414", "id": "d7406d919476cd61ee01a68cecff9f6ce788fab9bcc0f3f62a509411293b5808",
"image": "sha256:b2b95105cdb73911ee4cf4ed7bd9ffd13229056a612d6fdbeae19ed7cc6808ab", "image": "sha256:b2b95105cdb73911ee4cf4ed7bd9ffd13229056a612d6fdbeae19ed7cc6808ab",
"init": false, "init": false,
"ipc_mode": "private", "ipc_mode": "private",
@@ -827,7 +827,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": false, "read_only": null,
"source": "/share/appdata/airsonic/data", "source": "/share/appdata/airsonic/data",
"target": "/var/airsonic", "target": "/var/airsonic",
"tmpfs_options": [], "tmpfs_options": [],
@@ -836,7 +836,7 @@
}, },
{ {
"bind_options": [], "bind_options": [],
"read_only": false, "read_only": null,
"source": "/share/appdata/airsonic/music", "source": "/share/appdata/airsonic/music",
"target": "/var/music", "target": "/var/music",
"tmpfs_options": [], "tmpfs_options": [],
@@ -845,7 +845,7 @@
}, },
{ {
"bind_options": [], "bind_options": [],
"read_only": false, "read_only": null,
"source": "/share/appdata/airsonic/playlists", "source": "/share/appdata/airsonic/playlists",
"target": "/var/playlists", "target": "/var/playlists",
"tmpfs_options": [], "tmpfs_options": [],
@@ -854,7 +854,7 @@
}, },
{ {
"bind_options": [], "bind_options": [],
"read_only": false, "read_only": null,
"source": "/share/appdata/airsonic/podcasts", "source": "/share/appdata/airsonic/podcasts",
"target": "/var/podcasts", "target": "/var/podcasts",
"tmpfs_options": [], "tmpfs_options": [],
@@ -882,7 +882,7 @@
"ip_address": "192.168.2.83", "ip_address": "192.168.2.83",
"ip_prefix_length": 24, "ip_prefix_length": 24,
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:2f:cd:93:b6", "mac_address": "02:42:8a:ef:13:57",
"network_name": "qnet-static-eth0-48e715" "network_name": "qnet-static-eth0-48e715"
} }
], ],
@@ -916,21 +916,23 @@
"stdin_open": false, "stdin_open": false,
"stop_signal": "", "stop_signal": "",
"stop_timeout": 0, "stop_timeout": 0,
"storage_opts": {}, "storage_opts": null,
"sysctls": {}, "sysctls": null,
"tmpfs": {}, "tmpfs": null,
"tty": false, "tty": false,
"ulimit": [ "ulimit": [],
{
"hard": 65535,
"name": "nofile",
"soft": 65535
}
],
"upload": [], "upload": [],
"user": "0:0", "user": "0:0",
"userns_mode": "", "userns_mode": "",
"volumes": [], "volumes": [
{
"container_path": "/data",
"from_container": "",
"host_path": "",
"read_only": null,
"volume_name": "truenas-arr"
}
],
"wait": false, "wait": false,
"wait_timeout": 60, "wait_timeout": 60,
"working_dir": "/var" "working_dir": "/var"
@@ -938,11 +940,8 @@
"sensitive_attributes": [], "sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
"dependencies": [ "dependencies": [
"data.docker_registry_image.airsonic",
"data.docker_registry_image.mariadb",
"docker_container.mariadb", "docker_container.mariadb",
"docker_image.airsonic", "docker_image.airsonic",
"docker_image.mariadb",
"docker_network.bridge", "docker_network.bridge",
"docker_network.mariadb" "docker_network.mariadb"
] ]
@@ -3453,9 +3452,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"
@@ -3467,8 +3466,8 @@
], ],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": null, "group_add": [],
"healthcheck": null, "healthcheck": [],
"host": [], "host": [],
"hostname": "daddff4ff9b7", "hostname": "daddff4ff9b7",
"id": "daddff4ff9b741ab69851e855da5f526d3b9ddc4136436f2494b18491af571ed", "id": "daddff4ff9b741ab69851e855da5f526d3b9ddc4136436f2494b18491af571ed",
@@ -3477,7 +3476,7 @@
"ipc_mode": "private", "ipc_mode": "private",
"labels": [], "labels": [],
"log_driver": "local", "log_driver": "local",
"log_opts": null, "log_opts": {},
"logs": false, "logs": false,
"max_retry_count": 0, "max_retry_count": 0,
"memory": 0, "memory": 0,
@@ -3485,7 +3484,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/lidarr", "source": "/share/appdata/lidarr",
"target": "/config", "target": "/config",
"tmpfs_options": [], "tmpfs_options": [],
@@ -3531,11 +3530,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": "",
@@ -3544,7 +3549,7 @@
"container_path": "/data", "container_path": "/data",
"from_container": "", "from_container": "",
"host_path": "", "host_path": "",
"read_only": null, "read_only": false,
"volume_name": "truenas-arr" "volume_name": "truenas-arr"
} }
], ],
@@ -3555,6 +3560,7 @@
"sensitive_attributes": [], "sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==",
"dependencies": [ "dependencies": [
"data.docker_registry_image.lidarr",
"docker_image.lidarr", "docker_image.lidarr",
"docker_network.bridge" "docker_network.bridge"
] ]
@@ -3808,7 +3814,7 @@
"ip_address": "192.168.2.115", "ip_address": "192.168.2.115",
"ip_prefix_length": 24, "ip_prefix_length": 24,
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:60:e0:32:bf", "mac_address": "02:42:29:87:cf:c7",
"network_name": "qnet-static-eth0-48e715" "network_name": "qnet-static-eth0-48e715"
} }
], ],
@@ -4203,16 +4209,6 @@
"must_run": true, "must_run": true,
"name": "photoprism", "name": "photoprism",
"network_data": [ "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", "gateway": "172.29.0.1",
"global_ipv6_address": "", "global_ipv6_address": "",
@@ -4222,6 +4218,16 @@
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:ac:1d:00:03", "mac_address": "02:42:ac:1d:00:03",
"network_name": "mariadb" "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", "network_mode": "default",

View File

@@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "1.5.5", "terraform_version": "1.5.5",
"serial": 4775, "serial": 4777,
"lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@@ -3007,9 +3007,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": [
"/bin/sh", "/bin/sh",
@@ -3022,7 +3022,7 @@
], ],
"exit_code": null, "exit_code": null,
"gpus": null, "gpus": null,
"group_add": null, "group_add": [],
"healthcheck": [ "healthcheck": [
{ {
"interval": "30s", "interval": "30s",
@@ -3043,7 +3043,7 @@
"ipc_mode": "private", "ipc_mode": "private",
"labels": [], "labels": [],
"log_driver": "local", "log_driver": "local",
"log_opts": null, "log_opts": {},
"logs": false, "logs": false,
"max_retry_count": 0, "max_retry_count": 0,
"memory": 0, "memory": 0,
@@ -3051,7 +3051,7 @@
"mounts": [ "mounts": [
{ {
"bind_options": [], "bind_options": [],
"read_only": null, "read_only": false,
"source": "/share/appdata/homer", "source": "/share/appdata/homer",
"target": "/www/assets", "target": "/www/assets",
"tmpfs_options": [], "tmpfs_options": [],
@@ -3113,11 +3113,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": "",
@@ -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", "mode": "managed",
"type": "docker_container", "type": "docker_container",
@@ -3493,16 +3627,6 @@
"must_run": true, "must_run": true,
"name": "mariadb", "name": "mariadb",
"network_data": [ "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", "gateway": "172.29.0.1",
"global_ipv6_address": "", "global_ipv6_address": "",
@@ -3512,6 +3636,16 @@
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:ac:1d:00:05", "mac_address": "02:42:ac:1d:00:05",
"network_name": "mariadb" "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", "network_mode": "default",
@@ -4069,16 +4203,6 @@
"must_run": true, "must_run": true,
"name": "photoprism", "name": "photoprism",
"network_data": [ "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", "gateway": "192.168.2.1",
"global_ipv6_address": "", "global_ipv6_address": "",
@@ -4088,6 +4212,16 @@
"ipv6_gateway": "", "ipv6_gateway": "",
"mac_address": "02:42:e2:4d:c0:78", "mac_address": "02:42:e2:4d:c0:78",
"network_name": "qnet-static-eth0-48e715" "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", "network_mode": "default",