mirror of
https://github.com/acaloiaro/garbagespeak.com
synced 2026-07-21 10:12:19 +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
|
|
@ -19,8 +19,7 @@ job "garbage_speak" {
|
|||
|
||||
network {
|
||||
port "garbage_speak" {
|
||||
to = 1314
|
||||
host_network = "tailnet"
|
||||
to = 1314
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +43,7 @@ job "garbage_speak" {
|
|||
template {
|
||||
data = <<EOF
|
||||
{{ 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 }}
|
||||
EOF
|
||||
destination = "local/env"
|
||||
|
|
|
|||
Loading…
Reference in a new issue