From 05718edebbf47c31a63dd593f719670b9d465792 Mon Sep 17 00:00:00 2001 From: Nemo <me@captnemo.in> Date: Wed, 09 Oct 2019 04:49:36 +0530 Subject: [PATCH] Attempt to switch to linuxserver --- 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}" } -- rgit 0.1.5