add ayden discord bot

This commit is contained in:
wizzdom 2024-01-23 04:58:27 +00:00
parent 0159e15643
commit ffbff35316

View file

@ -0,0 +1,36 @@
job "ayden-discord-bot" {
datacenters = ["aperture"]
type = "service"
group "discordbotgoml" {
count = 1
task "discordbotgoml" {
driver = "docker"
config {
image = "ghcr.io/aydenjahola/discordbotgoml:main"
auth {
username = "${DOCKER_USER}"
password = "${DOCKER_PASS}"
}
}
resources {
cpu = 500
memory = 256
}
template {
data = <<EOH
DISCORD_TOKEN={{ key "user-projects/ayden/gomlbot/discord/token" }}
DOCKER_USER={{ key "user-projects/ayden/ghcr/username" }}
DOCKER_PASS={{ key "user-projects/ayden/ghcr/password" }}
DEBUG=false
EOH
destination = "local/.env"
env = true
}
}
}
}