Skip to content

Commit

Permalink
Merge pull request #8 from AngelOnFira/patch-2
Browse files Browse the repository at this point in the history
Create nomad.hcl
  • Loading branch information
AlanReviews authored Jan 4, 2025
2 parents 42999fe + 9e6df3f commit 1ce2deb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions nomad.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
job "tara-bot" {
datacenters = ["dc1"]
type = "service"

group "python-bot" {
count = 1

restart {
attempts = 3
delay = "30s"
}

task "tara-bot" {
driver = "docker"

config {
image = "ghcr.io/alanreviews/discordpy-bot/tara-bot:latest"
}

resources {
cpu = 64
memory = 64
}

template {
data = <<EOH
DISCORD_TOKEN={{ with nomadVar "nomad/jobs/tara-bot" }}{{ .DISCORD_TOKEN }}{{ end }}
EOH

destination = "secrets/file.env"
env = true
}
}
}
}

0 comments on commit 1ce2deb

Please # to comment.