minio: fix ports
This commit is contained in:
parent
571efb3e8b
commit
2c55dd17ae
1 changed files with 19 additions and 21 deletions
|
@ -7,38 +7,36 @@ job "minio" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
network {
|
network {
|
||||||
port "cdn" {
|
port "api" {
|
||||||
static = 9000
|
|
||||||
}
|
}
|
||||||
port "http" {
|
port "console" {
|
||||||
static = 9001
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
service {
|
service {
|
||||||
name = "minio-web"
|
name = "minio-console"
|
||||||
port = "http"
|
port = "console"
|
||||||
|
|
||||||
check {
|
check {
|
||||||
type = "http"
|
type = "http"
|
||||||
path = "/"
|
path = "/"
|
||||||
interval = "10s"
|
interval = "10s"
|
||||||
timeout = "2s"
|
timeout = "2s"
|
||||||
}
|
}
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.http.routers.minio-cdn.service=minio-cdn",
|
"traefik.http.routers.minio-api.service=minio-api",
|
||||||
"traefik.http.services.minio-cdn.loadbalancer.server.port=${NOMAD_PORT_cdn}",
|
"traefik.http.services.minio-api.loadbalancer.server.port=${NOMAD_PORT_api}",
|
||||||
"traefik.http.routers.minio-cdn.rule=Host(`cdn.redbrick.dcu.ie`)",
|
"traefik.http.routers.minio-api.rule=Host(`cdn.redbrick.dcu.ie`)",
|
||||||
"traefik.http.routers.minio-cdn.entrypoints=web,websecure",
|
"traefik.http.routers.minio-api.entrypoints=web,websecure",
|
||||||
"traefik.http.routers.minio-cdn.tls.certresolver=lets-encrypt",
|
"traefik.http.routers.minio-api.tls.certresolver=lets-encrypt",
|
||||||
|
|
||||||
"traefik.http.routers.minio-web.service=minio-web",
|
"traefik.http.routers.minio-console.service=minio-console",
|
||||||
"traefik.http.services.minio-web.loadbalancer.server.port=${NOMAD_PORT_http}",
|
"traefik.http.services.minio-console.loadbalancer.server.port=${NOMAD_PORT_console}",
|
||||||
"traefik.http.routers.minio-web.rule=Host(`minio.rb.dcu.ie`)",
|
"traefik.http.routers.minio-console.rule=Host(`minio.rb.dcu.ie`)",
|
||||||
"traefik.http.routers.minio-web.entrypoints=web,websecure",
|
"traefik.http.routers.minio-console.entrypoints=web,websecure",
|
||||||
"traefik.http.routers.minio-web.tls.certresolver=lets-encrypt",
|
"traefik.http.routers.minio-console.tls.certresolver=lets-encrypt",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,10 +45,10 @@ job "minio" {
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "quay.io/minio/minio"
|
image = "quay.io/minio/minio"
|
||||||
ports = ["cdn","http"]
|
ports = ["api", "console"]
|
||||||
|
|
||||||
command = "server"
|
command = "server"
|
||||||
args = ["/data", "--console-address", ":9001"]
|
args = ["/data", "--address", ":${NOMAD_PORT_api}", "--console-address", ":${NOMAD_PORT_console}"]
|
||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"/storage/nomad/minio:/data",
|
"/storage/nomad/minio:/data",
|
||||||
|
|
Loading…
Reference in a new issue