Merge pull request #7 from redbrick/ams-v2

Ams v2
This commit is contained in:
cathalogue 2023-10-06 13:00:10 +01:00 committed by GitHub
commit d464dc87da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,7 @@ job "nginx-ams" {
network {
port "http" {
to = "80"
}
port "https" {
to = "443"
to = 3000
}
}
@ -29,7 +25,7 @@ job "nginx-ams" {
"traefik.enable=true",
"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.tls.certresolver=lets-encrypt"
"traefik.http.routers.nginx-ams.tls.certresolver=lets-encrypt",
]
}
@ -37,8 +33,13 @@ job "nginx-ams" {
driver = "docker"
config {
image = "ghcr.io/dcuams/amikon-website"
ports = ["http", "https"]
image = "ghcr.io/dcuams/amikon-site-v2:latest"
ports = ["http"]
}
resources {
cpu = 100
memory = 500
}
}
}