commit
d464dc87da
1 changed files with 9 additions and 8 deletions
|
@ -8,11 +8,7 @@ job "nginx-ams" {
|
||||||
|
|
||||||
network {
|
network {
|
||||||
port "http" {
|
port "http" {
|
||||||
to = "80"
|
to = 3000
|
||||||
}
|
|
||||||
|
|
||||||
port "https" {
|
|
||||||
to = "443"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +25,7 @@ job "nginx-ams" {
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.nginx-ams.rule=Host(`amikon.me`,`www.amikon.me`)",
|
"traefik.http.routers.nginx-ams.rule=Host(`amikon.me`,`www.amikon.me`)",
|
||||||
"traefik.http.routers.nginx-ams.entrypoints=web,websecure",
|
"traefik.http.routers.nginx-ams.entrypoints=web,websecure",
|
||||||
"traefik.http.routers.nginx-ams.tls.certresolver=lets-encrypt"
|
"traefik.http.routers.nginx-ams.tls.certresolver=lets-encrypt",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,8 +33,13 @@ job "nginx-ams" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "ghcr.io/dcuams/amikon-website"
|
image = "ghcr.io/dcuams/amikon-site-v2:latest"
|
||||||
ports = ["http", "https"]
|
ports = ["http"]
|
||||||
|
}
|
||||||
|
|
||||||
|
resources {
|
||||||
|
cpu = 100
|
||||||
|
memory = 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue