Skip to content

Commit

Permalink
services/nomad/apps/xq-api: migrate to nomad
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp authored and the-maldridge committed Oct 23, 2023
1 parent 179d6b4 commit 0777f94
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions services/nomad/apps/xq-api.nomad
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
job "xq-api" {
datacenters = ["VOID-MIRROR"]
namespace = "apps"
type = "system"

group "xq-api" {
count = 1

volume "dist_mirror" {
type = "host"
source = "dist_mirror"
read_only = true
}

network {
mode = "bridge"
port "http" { to = 8197 }
}

service {
name = "xq-api"
port = "http"
meta {
nginx_enable = "true"
nginx_names = "xq-api.voidlinux.org"
}
}

task "man-cgi" {
driver = "docker"

config {
image = "ghcr.io/void-linux/infra-xq-api:20231023R1"
}

volume_mount {
volume = "dist_mirror"
destination = "/mirror"
}
}
}
}

0 comments on commit 0777f94

Please sign in to comment.