nebula/firefox-sync.tf

37 lines
761 B
Terraform
Raw Normal View History

2019-01-26 12:36:18 +00:00
module "firefox-sync" {
name = "firefox-sync"
source = "./modules/container"
image = "mozilla/syncserver:latest"
// Default is port 80
web = {
2019-01-26 12:36:18 +00:00
expose = true
port = "5000"
host = "firesync.${var.root-domain}"
}
resource = {
2020-07-29 17:19:35 +00:00
memory = "400"
memory_swap = "400"
}
volumes = [
{
host_path = "/mnt/xwing/data/firefox-sync"
container_path = "/data"
},
]
2019-01-26 12:36:18 +00:00
env = [
"SYNCSERVER_PUBLIC_URL=https://firesync.${var.root-domain}",
2019-03-25 15:34:47 +00:00
"SYNCSERVER_SECRET=${data.pass_password.syncserver_secret.password}",
2019-01-26 12:36:18 +00:00
"SYNCSERVER_SQLURI=sqlite:////data/sync.db",
"SYNCSERVER_BATCH_UPLOAD_ENABLED=true",
"SYNCSERVER_FORCE_WSGI_ENVIRON=true",
"PORT=5000",
]
networks = ["bridge"]
2019-01-26 12:36:18 +00:00
}