-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchuko.nomad
48 lines (40 loc) · 928 Bytes
/
chuko.nomad
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
job "chuko" {
datacenters = ["dc1"]
type = "service"
group "chuko" {
count = 1
network {
port "http" {
to = 4000
}
}
service {
name = "chuko"
port = "http"
provider = "nomad"
tags = [
"traefik.enable=true",
"traefik.http.routers.chuko.rule=Host(`chuko.gay`)",
"traefik.http.routers.chuko.tls=true",
"traefik.http.routers.chuko.tls.certresolver=letsencrypt"
]
}
task "chuko" {
driver = "docker"
config {
image = "ghcr.io/okkdev/chuko"
ports = ["http"]
}
env {
// Generate a new one with `mix phx.gen.secret`
SECRET_KEY_BASE = "1Lvd0uSlGOblVBx6es3UFyCLxQPh45Vi+VBEbYyIb8D4LEv70VGT+RNK6V2RxYRn"
PHX_HOST = "chuko.gay"
DATABASE_PATH = "/app/chuko.db"
}
resources {
cpu = 1000
memory = 1000
}
}
}
}