-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbudibase-standalone.nomad.hcl
79 lines (65 loc) · 1.67 KB
/
budibase-standalone.nomad.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
variable "couch_db_user" {
type = string
description = "The Couch DB Username."
default = "micky"
}
variable "couch_db_pass" {
type = string
description = "The Couch DB Password."
default = "mouse"
}
variable "redis_pass" {
type = string
description = "The Redis Password."
default = "duckduckduck"
}
variable "api_enc_key" {
type = string
description = "The API Encryption Key."
default = "testsecret"
}
variable "jwt_secret" {
type = string
description = "The JWT Secret."
default = "testsecret"
}
variable "minio_access_key" {
type = string
description = "The Minio Access Key."
default = "testsecret"
}
variable "minio_secret_key" {
type = string
description = "The Minio Secret Key."
default = "testsecretkeykey"
}
variable "internal_api_key" {
type = string
description = "The Internal API Key."
default = "testsecret"
}
job "budibase" {
datacenters = ["dc1"]
type = "service"
group "budibase" {
network {
port "app" { to = 80 }
}
task "app" {
driver = "docker"
config {
image = "budibase/budibase:latest"
ports = ["app"]
}
env {
JWT_SECRET = "${var.jwt_secret}"
MINIO_ACCESS_KEY = "${var.minio_access_key}"
MINIO_SECRET_KEY = "${var.minio_secret_key}"
REDIS_PASSWORD = "${var.redis_pass}"
COUCHDB_USER = "${var.couch_db_user}"
COUCHDB_PASSWORD = "${var.couch_db_pass}"
INTERNAL_API_KEY = "${var.internal_api_key}"
}
}
}
}