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 { 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
} }
} }
} }