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 {
|
|
|
|
expose = true
|
|
|
|
port = "5000"
|
|
|
|
host = "firesync.${var.root-domain}"
|
|
|
|
}
|
|
|
|
|
2020-07-29 17:19:35 +00:00
|
|
|
resource {
|
|
|
|
memory = "400"
|
|
|
|
memory_swap = "400"
|
|
|
|
}
|
|
|
|
|
2019-01-26 12:36:18 +00:00
|
|
|
volumes = [{
|
|
|
|
host_path = "/mnt/xwing/data/firefox-sync"
|
|
|
|
container_path = "/data"
|
|
|
|
}]
|
|
|
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
|
2019-04-13 18:41:55 +00:00
|
|
|
networks_advanced = [
|
|
|
|
{
|
|
|
|
name = "traefik"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "bridge"
|
|
|
|
},
|
2019-01-26 12:36:18 +00:00
|
|
|
]
|
|
|
|
}
|