got gonic working

This commit is contained in:
Nemo 2020-10-10 19:02:50 +05:30
parent 735279b0c1
commit 4922bd098f
3 changed files with 33 additions and 33 deletions

View File

@ -146,6 +146,7 @@ ENABLE_NOTIFY_MAIL = true
DISABLE_REGISTRATION = false
; ; Enable captcha validation for registration
ENABLE_CAPTCHA = true
REQUIRE_EXTERNAL_REGISTRATION_CAPTCHA = true
CAPTCHA_TYPE = image
; ; User must sign in to view anything.
REQUIRE_SIGNIN_VIEW = false

View File

@ -1,7 +1,6 @@
# https://github.com/go-gitea/gitea/releases
data "docker_registry_image" "gitea" {
# not bleeding, this is hemorrhaging edge
name = "gitea/gitea:1.11"
name = "gitea/gitea:1.12"
}
data "docker_registry_image" "redis" {

View File

@ -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
}
]
}