aboutsummaryrefslogtreecommitdiff
path: root/terraform/unifi-controller/mongo.tf
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/unifi-controller/mongo.tf')
-rw-r--r--terraform/unifi-controller/mongo.tf5
1 files changed, 4 insertions, 1 deletions
diff --git a/terraform/unifi-controller/mongo.tf b/terraform/unifi-controller/mongo.tf
index 98b4e36..2b83691 100644
--- a/terraform/unifi-controller/mongo.tf
+++ b/terraform/unifi-controller/mongo.tf
@@ -24,15 +24,18 @@ resource "docker_container" "unifi-mongo" {
name = docker_network.unifi.name
}
+ network_mode = "bridge"
+
volumes {
volume_name = docker_volume.unifi-mongo.name
+ read_only = false
container_path = "/data/db"
}
}
output "mongo_init_js" {
sensitive = true
- value = <<-EOF
+ value = <<-EOF
db.getSiblingDB("${local.mongo_database}").
createUser({
user: "${local.mongo_database}",