mirror of
https://github.com/acaloiaro/garbagespeak.com
synced 2026-07-21 18:29:08 +00:00
chore(db): move to new cluster
This commit is contained in:
parent
665bdd13fc
commit
fe45e250bb
1 changed files with 2 additions and 3 deletions
|
|
@ -20,7 +20,6 @@ job "garbage_speak" {
|
||||||
network {
|
network {
|
||||||
port "garbage_speak" {
|
port "garbage_speak" {
|
||||||
to = 1314
|
to = 1314
|
||||||
host_network = "tailnet"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -44,7 +43,7 @@ job "garbage_speak" {
|
||||||
template {
|
template {
|
||||||
data = <<EOF
|
data = <<EOF
|
||||||
{{ with nomadVar "nomad/jobs" }}
|
{{ with nomadVar "nomad/jobs" }}
|
||||||
POSTGRES_URL=postgresql://postgres:{{ .postgres_password }}{{end}}@{{ range nomadService "postgres" }}{{ .Address }}:{{ .Port }}{{ end }}/garbage_speak?sslmode=disable
|
POSTGRES_URL=postgresql://{{ .postgres_user }}:{{ .postgres_password }}@{{ .postgres_host }}:{{ .postgres_port }}/garbage_speak?sslmode=require{{ end }}
|
||||||
{{ with nomadVar "nomad/jobs/garbage_speak" }}SMTP_PASSWORD={{ .SMTP_PASSWORD }}{{ end }}
|
{{ with nomadVar "nomad/jobs/garbage_speak" }}SMTP_PASSWORD={{ .SMTP_PASSWORD }}{{ end }}
|
||||||
EOF
|
EOF
|
||||||
destination = "local/env"
|
destination = "local/env"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue