Adds Firefox Sync Server

This commit is contained in:
Nemo 2019-01-26 18:06:18 +05:30
parent 4b5747abd3
commit 0792c36f64
3 changed files with 34 additions and 1 deletions

30
firefox-sync.tf Normal file
View File

@ -0,0 +1,30 @@
module "firefox-sync" {
name = "firefox-sync"
source = "./modules/container"
image = "mozilla/syncserver:latest"
// Default is port 80
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)}",
]
}

View File

@ -10,7 +10,8 @@ module "sonarr-container" {
}
resource {
memory = 512
memory = 512
memory_swap = 1024
}
volumes = [

View File

@ -92,3 +92,5 @@ variable "outline_slack_key" {}
variable "outline_slack_secret" {}
variable "outline_slack_app_id" {}
variable "outline_slack_verification_token" {}
variable "syncserver_secret" {}