-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmolecule.hcl
More file actions
117 lines (104 loc) · 2.69 KB
/
Copy pathmolecule.hcl
File metadata and controls
117 lines (104 loc) · 2.69 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
job "molecule" {
datacenters = ["dc1"]
type = "service"
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
}
group "server" {
update {
max_parallel = 1
canary = 1
min_healthy_time = "20s"
healthy_deadline = "5m"
progress_deadline = "10m"
auto_revert = true
auto_promote = true
}
network {
port "http" {
to = 8080
}
}
service {
name = "molecule"
port = "http"
check {
type = "http"
path = "/health"
interval = "10s"
timeout = "2s"
}
tags = [
"traefik.enable=true",
"traefik.http.routers.molecule.rule=Host(`molecule.dbyte.xyz`)",
]
}
task "molecule" {
driver = "docker"
shutdown_delay = "5s"
config {
image = "ghcr.io/distrobyte/molecule:0.9.5"
force_pull = true
ports = ["http"]
mount {
type = "bind"
source = "local/config.yaml"
target = "/config.yaml"
}
}
template {
data = <<EOF
PROD=true
API_KEY={{ key "molecule/apikey" }}
CONFIG_FILE="/config.yaml"
EOF
destination = "local/env"
env = true
}
template {
data = <<EOF
standard_urls:
- service: "nomad"
url: "http://zeus.internal:4646"
- service: "consul"
url: "http://zeus.internal:8500"
- service: "traefik"
url: "http://hermes.internal:8081"
- service: "headplane"
url: "https://headplane.dbyte.xyz"
icon: "https://raw.githubusercontent.com/tale/headplane/main/app/logo/dark-bg.svg"
- service: "synology-dsm"
url: "https://dionysus.internal:5001"
- service: "drive"
url: "https://drive.dbyte.xyz"
icon: "https://raw.githubusercontent.com/homarr-labs/dashboard-icons/refs/heads/main/png/synology-drive.png"
- service: "gatus"
url: "http://observability.ts.dbyte.xyz:8080/"
- service: "jellyfin"
url: "https://video.dbyte.xyz"
- service: "ghost"
url: "https://photo.james-hackett.ie/ghost"
- service: "sonarr"
url: "http://dionysus.internal:8989"
- service: "radarr"
url: "http://dionysus.internal:7878"
- service: "pihole"
url: "http://dionysus.internal/admin"
icon: "https://raw.githubusercontent.com/homarr-labs/dashboard-icons/refs/heads/main/png/pi-hole.png"
- service: "jackett"
url: "http://dionysus.internal:9117"
- service: "syncthing"
url: "http://dionysus.internal:8384"
nomad:
address: "http://zeus.internal:4646"
EOF
destination = "local/config.yaml"
}
resources {
cpu = 200
memory = 50
}
}
}
}