resource "docker_container" "couchpotato" { name = "couchpotato" image = "${docker_image.couchpotato.latest}" volumes { host_path = "/mnt/xwing/config/couchpotato" container_path = "/config" } volumes { host_path = "/mnt/xwing/media/DL" container_path = "/downloads" } volumes { host_path = "/mnt/xwing/media/Movies" container_path = "/movies" } labels = "${merge( local.traefik_common_labels, map( "traefik.frontend.auth.basic", "${var.basic_auth}", "traefik.port", 5050, ))}" memory = 256 restart = "unless-stopped" destroy_grace_seconds = 10 must_run = true # Running as lounge:tatooine env = [ "PUID=1004", "PGID=1003", "TZ=Asia/Kolkata", ] links = ["{docker_container.transmission.name}"] }