-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackstage.hcl
45 lines (40 loc) · 998 Bytes
/
backstage.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
locals {
image = "brucedominguez/backstage-nomad-example:1.0.0"
github_token = "<ADD PERSONAL ACCESS TOKEN HERE>"
cataglog_info_url = "https://github.com/<YOUR ORG>/backstage-nomad-local/blob/main/catalog/all.yaml"
}
job "backstage" {
datacenters = ["dc1"]
group "backstage" {
network {
port "backend" {
to = "7007"
static = "7007"
}
port "app" {
to = 3000
static = 3000
}
}
task "server" {
driver = "docker"
config {
image = "${local.image}"
ports = ["app", "backend"]
}
env {
POSTGRES_HOST = "postgres.service.consul"
POSTGRES_PORT = "5432"
POSTGRES_USER = "postgres"
POSTGRES_PASSWORD = "postgres"
GITHUB_TOKEN = "${local.github_token}"
GITHUB_CATALOG_URL = "${local.cataglog_info_url}"
}
service {
name = "backstage"
tags = ["backstage"]
port = "backend"
}
}
}
}