Improve NextCloud Networking
This commit is contained in:
parent
d9ef272286
commit
071a16dc94
|
@ -1,7 +1,7 @@
|
||||||
module "miniflux-container" {
|
module "miniflux-container" {
|
||||||
name = "miniflux"
|
name = "miniflux"
|
||||||
source = "modules/container"
|
source = "modules/container"
|
||||||
image = "miniflux/miniflux:2.0.14"
|
image = "miniflux/miniflux:2.0.15"
|
||||||
|
|
||||||
web {
|
web {
|
||||||
expose = true
|
expose = true
|
||||||
|
|
36
nextcloud.tf
36
nextcloud.tf
|
@ -7,7 +7,7 @@ module "nextcloud-db" {
|
||||||
module "nextcloud-container" {
|
module "nextcloud-container" {
|
||||||
source = "modules/container"
|
source = "modules/container"
|
||||||
name = "nextcloud"
|
name = "nextcloud"
|
||||||
image = "nextcloud:15-apache"
|
image = "nextcloud:16-rc-apache"
|
||||||
|
|
||||||
volumes = [{
|
volumes = [{
|
||||||
container_path = "/var/www/html"
|
container_path = "/var/www/html"
|
||||||
|
@ -35,18 +35,34 @@ module "nextcloud-container" {
|
||||||
host = "c.${var.root-domain}"
|
host = "c.${var.root-domain}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# module.docker.traefik-network-id,
|
networks_advanced = [
|
||||||
networks = "${list(
|
{
|
||||||
data.docker_network.bridge.id,
|
name = "traefik"
|
||||||
module.db.postgres-network-id
|
},
|
||||||
)}"
|
{
|
||||||
|
name = "nextcloud"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "postgres"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "docker_network" "nextcloud" {
|
||||||
|
name = "nextcloud"
|
||||||
|
internal = true
|
||||||
}
|
}
|
||||||
|
|
||||||
module "nextcloud-redis" {
|
module "nextcloud-redis" {
|
||||||
name = "nextcloud-redis"
|
name = "nextcloud-redis"
|
||||||
source = "modules/container"
|
source = "modules/container"
|
||||||
image = "redis:alpine"
|
image = "redis:alpine"
|
||||||
networks = ["${data.docker_network.bridge.id}"]
|
|
||||||
|
networks_advanced = [
|
||||||
|
{
|
||||||
|
name = "nextcloud"
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
# ThisSucks
|
# ThisSucks
|
||||||
web {
|
web {
|
||||||
|
|
Loading…
Reference in New Issue