|
|
@ -1,36 +1,36 @@ |
|
|
|
# module "gonic" { |
|
|
|
# source = "../modules/container" |
|
|
|
# image = "sentriz/gonic" |
|
|
|
# name = "gonic" |
|
|
|
module "gonic" { |
|
|
|
source = "../modules/container" |
|
|
|
image = "sentriz/gonic" |
|
|
|
name = "gonic" |
|
|
|
|
|
|
|
# resource { |
|
|
|
# memory = "256" |
|
|
|
# memory_swap = "256" |
|
|
|
# } |
|
|
|
resource { |
|
|
|
memory = "512" |
|
|
|
memory_swap = "512" |
|
|
|
} |
|
|
|
|
|
|
|
# web { |
|
|
|
# port = 80 |
|
|
|
# host = "gonic.bb8.fun" |
|
|
|
# expose = true |
|
|
|
# } |
|
|
|
web { |
|
|
|
port = 80 |
|
|
|
host = "gonic.bb8.fun" |
|
|
|
expose = true |
|
|
|
} |
|
|
|
|
|
|
|
# env = [ |
|
|
|
# "GONIC_SCAN_INTERVAL=60", |
|
|
|
# "GONIC_MUSIC_PATH=/music", |
|
|
|
# "GONIC_DB_PATH=/data/gonic.db" |
|
|
|
# ] |
|
|
|
env = [ |
|
|
|
"GONIC_SCAN_INTERVAL=60", |
|
|
|
"GONIC_MUSIC_PATH=/music", |
|
|
|
"GONIC_DB_PATH=/data/gonic.db" |
|
|
|
] |
|
|
|
|
|
|
|
# networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}" |
|
|
|
networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}" |
|
|
|
|
|
|
|
# volumes = [ |
|
|
|
# { |
|
|
|
# host_path = "/mnt/xwing/config/gonic" |
|
|
|
# container_path = "/data" |
|
|
|
# }, |
|
|
|
# { |
|
|
|
# host_path = "/mnt/xwing/media/Music" |
|
|
|
# container_path = "/music" |
|
|
|
# read_only = true |
|
|
|
# } |
|
|
|
# ] |
|
|
|
# } |
|
|
|
volumes = [ |
|
|
|
{ |
|
|
|
host_path = "/mnt/xwing/config/gonic" |
|
|
|
container_path = "/data" |
|
|
|
}, |
|
|
|
{ |
|
|
|
host_path = "/mnt/xwing/media/Music" |
|
|
|
container_path = "/music" |
|
|
|
read_only = true |
|
|
|
} |
|
|
|
] |
|
|
|
} |