There are many examples how to run docker containers from command like or using helm. Yet when I find guide like this GitHub - keycloak/keycloak-containers: Docker image for Keycloak project I wonder how would you convert run command to nomad a config?
To run Keycloak, run:
docker run quay.io/keycloak/keycloak start-dev
My config:
job "keycloak" {
datacenters = ["aws"]
type = "service"
group "keycloak" {
network {
port "keycloak" { to = 9090 }
}
task "keycloak" {
driver = "docker"
config {
image = "https://quay.io/keycloak/keycloak:latest"
ports = ["keycloak"]
}
resources {
cpu = 500
memory = 256
}
}
}
}