Browse Source

got gonic working

master
Nemo 4 months ago
parent
commit
4922bd098f
3 changed files with 33 additions and 33 deletions
  1. +1
    -0
      gitea/conf/conf.ini.tpl
  2. +1
    -2
      gitea/data.tf
  3. +31
    -31
      media/gonic.tf

+ 1
- 0
gitea/conf/conf.ini.tpl 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


+ 1
- 2
gitea/data.tf 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" {


+ 31
- 31
media/gonic.tf 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
}
]
}

Loading…
Cancel
Save