Adds Firefox Sync Server
Diff
firefox-sync.tf | 30 ++++++++++++++++++++++++++++++
variables.tf | 2 ++
media/sonarr.tf | 3 ++-
3 files changed, 34 insertions(+), 1 deletion(-)
@@ -1,0 +1,30 @@
module "firefox-sync" {
name = "firefox-sync"
source = "./modules/container"
image = "mozilla/syncserver:latest"
web {
expose = true
port = "5000"
host = "firesync.${var.root-domain}"
}
volumes = [{
host_path = "/mnt/xwing/data/firefox-sync"
container_path = "/data"
}]
env = [
"SYNCSERVER_PUBLIC_URL=https://firesync.${var.root-domain}",
"SYNCSERVER_SECRET=${var.syncserver_secret}",
"SYNCSERVER_SQLURI=sqlite:////data/sync.db",
"SYNCSERVER_BATCH_UPLOAD_ENABLED=true",
"SYNCSERVER_FORCE_WSGI_ENVIRON=true",
"PORT=5000",
]
networks = [
"${list(module.docker.traefik-network-id)}",
]
}
@@ -92,3 +92,5 @@
variable "outline_slack_secret" {}
variable "outline_slack_app_id" {}
variable "outline_slack_verification_token" {}
variable "syncserver_secret" {}
@@ -10,7 +10,8 @@
}
resource {
memory = 512
memory = 512
memory_swap = 1024
}
volumes = [