-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathghost.hcl
65 lines (54 loc) · 1.23 KB
/
ghost.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
job "ghost" {
datacenters = ["dc1"]
type = "service"
group "web" {
network {
port "http" {
to = 2368
}
port "metrics" {
to = 8081
}
}
ephemeral_disk {
sticky = true
migrate = true
size = 1000
}
service {
name = "ghost"
port = "http"
check {
type = "tcp"
interval = "30s"
timeout = "2s"
}
tags = [
"traefik.enable=true",
"traefik.http.routers.ghost.rule=Host(`photos.james-hackett.ie`) || Host(`ghost.james-hackett.ie`)",
]
}
task "website" {
driver = "docker"
config {
image = "ghost:latest"
ports = ["http"]
mount {
type = "bind"
source = "..${NOMAD_ALLOC_DIR}/data/"
target = "/var/lib/ghost/content/"
readonly = false
}
}
env {
url = "https://photos.james-hackett.ie"
admin__url = "https://ghost.james-hackett.ie"
database__client = "sqlite3"
database__connection__filename = "${NOMAD_ALLOC_DIR}/data/ghost.db"
logging__level = "info"
logging__transports = "[\"stdout\"]"
privacy__useTinfoil = "true"
}
}
}
}