🏡 index : github.com/captn3m0/nebula.git

author Nemo <me@captnemo.in> 2019-10-09 4:49:36.0 +05:30:00
committer Nemo <me@captnemo.in> 2019-10-09 4:49:36.0 +05:30:00
commit
05718edebbf47c31a63dd593f719670b9d465792 [patch]
tree
75f00402583c995e29607addf69e19024dad5206
parent
1443f5f06dd36d1d69bbdad32f6616818b39da68
download
05718edebbf47c31a63dd593f719670b9d465792.tar.gz

Attempt to switch to linuxserver



Diff

 nextcloud.tf | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/nextcloud.tf b/nextcloud.tf
index 23eb393..3dfa340 100644
--- a/nextcloud.tf
+++ a/nextcloud.tf
@@ -7,14 +7,23 @@
module "nextcloud-container" {

  source = "modules/container"
  name   = "nextcloud"
  image  = "nextcloud:stable-apache"
  image  = "linuxserver/nextcloud"

  volumes = [{

    container_path = "/var/www/html"
    host_path      = "/mnt/xwing/data/nextcloud"
  }]
  volumes = [

    {
      container_path = "/data"
      host_path      = "/mnt/xwing/data/nextcloud/data"
    },
    {
      container_path = "/config"
      host_path      = "/mnt/xwing/config/nextcloud"
    },
  ]

  env = [

    "PUID=1004",
    "PGID=1003",
    "TZ=Asia/Kolkata",
    "POSTGRES_DB=nextcloud",
    "POSTGRES_USER=nextcloud",
    "POSTGRES_PASSWORD=${data.pass_password.nextcloud-db-password.password}",
@@ -31,7 +40,7 @@

  web {

    expose = true
    port   = 80
    port   = 443
    host   = "c.${var.root-domain}"
  }