switch airsonic to linuxserver container
This commit is contained in:
parent
c035808849
commit
5b3da0499a
|
@ -36,7 +36,7 @@ data "docker_registry_image" "sickrage" {
|
||||||
}
|
}
|
||||||
|
|
||||||
data "docker_registry_image" "airsonic" {
|
data "docker_registry_image" "airsonic" {
|
||||||
name = "airsonic/airsonic:latest"
|
name = "linuxserver/airsonic:latest"
|
||||||
}
|
}
|
||||||
|
|
||||||
data "docker_registry_image" "wikijs" {
|
data "docker_registry_image" "wikijs" {
|
||||||
|
|
|
@ -134,36 +134,42 @@ resource "docker_container" "airsonic" {
|
||||||
restart = "unless-stopped"
|
restart = "unless-stopped"
|
||||||
destroy_grace_seconds = 30
|
destroy_grace_seconds = 30
|
||||||
must_run = true
|
must_run = true
|
||||||
user = "1004"
|
|
||||||
memory = 800
|
memory = 800
|
||||||
|
|
||||||
volumes {
|
volumes {
|
||||||
host_path = "/mnt/xwing/config/airsonic/data"
|
host_path = "/mnt/xwing/config/airsonic/data"
|
||||||
container_path = "/airsonic/data"
|
container_path = "/config"
|
||||||
}
|
}
|
||||||
|
|
||||||
volumes {
|
volumes {
|
||||||
host_path = "/mnt/xwing/media/Music"
|
host_path = "/mnt/xwing/media/Music"
|
||||||
container_path = "/airsonic/music"
|
container_path = "/music"
|
||||||
}
|
}
|
||||||
|
|
||||||
volumes {
|
volumes {
|
||||||
host_path = "/mnt/xwing/config/airsonic/playlists"
|
host_path = "/mnt/xwing/config/airsonic/playlists"
|
||||||
container_path = "/airsonic/playlists"
|
container_path = "/playlists"
|
||||||
}
|
}
|
||||||
|
|
||||||
volumes {
|
volumes {
|
||||||
host_path = "/mnt/xwing/config/airsonic/podcasts"
|
host_path = "/mnt/xwing/config/airsonic/podcasts"
|
||||||
container_path = "/airsonic/podcasts"
|
container_path = "/podcasts"
|
||||||
}
|
}
|
||||||
|
|
||||||
labels = "${merge(
|
labels {
|
||||||
local.traefik_common_labels,
|
"traefik.enable" = "true"
|
||||||
map(
|
"traefik.port" = "4040"
|
||||||
"traefik.frontend.rule", "Host:airsonic.in.${var.domain},airsonic.${var.domain}",
|
"traefik.frontend.rule" = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"
|
||||||
"traefik.frontend.passHostHeader", "true",
|
"traefik.frontend.passHostHeader" = "true"
|
||||||
"traefik.port", 4040,
|
}
|
||||||
))}"
|
|
||||||
|
# lounge:tatooine
|
||||||
|
env = [
|
||||||
|
"PUID=1004",
|
||||||
|
"PGID=1003",
|
||||||
|
"TZ=Asia/Kolkata",
|
||||||
|
"CONTEXT_PATH=https://airsonic.bb8.fun",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "docker_container" "headerdebug" {
|
resource "docker_container" "headerdebug" {
|
||||||
|
|
Loading…
Reference in New Issue