Skip to content

Instantly share code, notes, and snippets.

@acivitillo
Created May 17, 2020 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acivitillo/c584e3787665cdd397c4758f1cebf16e to your computer and use it in GitHub Desktop.
Save acivitillo/c584e3787665cdd397c4758f1cebf16e to your computer and use it in GitHub Desktop.
job "sqlpad" {
datacenters = ["dc1"]
type = "service"
group "sqlpad" {
count = 1
task "sqlpad" {
driver = "docker"
config {
image = "sqlpad/sqlpad:latest"
port_map {
http = 3000
}
}
resources {
network {
mbits = 10
port "http" {}
}
}
service {
name = "sqlpad"
tags = [
"urlprefix-/sqlpad",
]
port = "http"
check {
name = "alive"
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment