Skip to content

Commit

Permalink
services/nomad/apps: Run devspace in host network mode
Browse files Browse the repository at this point in the history
  • Loading branch information
the-maldridge committed Feb 17, 2024
1 parent 3380de7 commit a3a0976
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions services/nomad/apps/devspace.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ job "devspace" {
}

network {
mode = "bridge"
port "http" { to = 8080 }
mode = "host"
port "http" {}
port "sftp" {
static = 2022
to = 2022
}
}

Expand All @@ -37,7 +36,6 @@ job "devspace" {
check {
type = "http"
port = 8081
address_mode = "alloc"
path = "/healthz"
timeout = "1s"
interval = "30s"
Expand Down Expand Up @@ -65,10 +63,11 @@ job "devspace" {

config {
image = "ghcr.io/void-linux/infra-sftpgo:20221001RC01"
network_mode = "host"
}

env {
SFTPGO_HTTPD__BINDINGS__0__ADDRESS=""
SFTPGO_HTTPD__BINDINGS__0__PORT="${NOMAD_PORT_http}"
SFTPGO_TELEMETRY__BIND_PORT="8081"
SFTPGO_TELEMETRY__BIND_ADDRESS=""
SFTPGO_NETAUTH_REQUIREGROUP="devspace-users"
Expand Down

0 comments on commit a3a0976

Please sign in to comment.