diff --git a/jobs/services/brickbot.hcl b/jobs/services/brickbot.hcl new file mode 100644 index 0000000..1fcb3b8 --- /dev/null +++ b/jobs/services/brickbot.hcl @@ -0,0 +1,54 @@ +job "brickbot2" { + datacenters = ["aperture"] + + type = "service" + + group "brickbot2" { + count = 1 + + task "brickbot2" { + driver = "docker" + + config { + image = "ghcr.io/redbrick/brickbot2:latest" + auth { + username = "${DOCKER_USER}" + password = "${DOCKER_PASS}" + } + volumes = [ + "local/ldap.secret:/etc/ldap.secret:ro", + ] + } + + template { + destination = "local/ldap.secret" + data = "{{ key \"api/ldap/secret\" }}" # this is necessary as the secret has no EOF + } + + template { + destination = "local/.env" + env = true + change_mode = "restart" + data = <