env variables
This commit is contained in:
parent
3f9cba90b8
commit
484ae7c654
2 changed files with 4 additions and 7 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
env "stripe_invoice_dev" {
|
env "stripe_invoice_dev" {
|
||||||
url = "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres.default.svc.cluster.local:5432/stripe_invoice_dev?sslmode=disable"
|
url = "postgres://"+env("POSTGRES_USER")+":"+env("POSTGRES_PASSWORD")+
|
||||||
|
"@postgres.default.svc.cluster.local:5432/stripe_invoice?sslmode=disable"
|
||||||
|
|
||||||
migration {
|
migration {
|
||||||
dir = "file://./db/atlas/stripe_invoice/migrations"
|
dir = "file://./db/atlas/stripe_invoice/migrations"
|
||||||
|
|
@ -7,7 +8,8 @@ env "stripe_invoice_dev" {
|
||||||
}
|
}
|
||||||
|
|
||||||
env "stripe_invoice_prod" {
|
env "stripe_invoice_prod" {
|
||||||
url = "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable"
|
url = "postgres://"+env("POSTGRES_USER")+":"+env("POSTGRES_PASSWORD")+
|
||||||
|
"@postgres.default.svc.cluster.local:5432/stripe_invoice_prod?sslmode=disable"
|
||||||
|
|
||||||
migration {
|
migration {
|
||||||
dir = "file://./db/atlas/stripe_invoice/migrations"
|
dir = "file://./db/atlas/stripe_invoice/migrations"
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,3 @@ stringData:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938
|
POSTGRES_PASSWORD: averysecretpasswordPersonAppleWinter938
|
||||||
POSTGRES_DB: stripe_invoice
|
POSTGRES_DB: stripe_invoice
|
||||||
DB_USER: postgres
|
|
||||||
DB_PASSWORD: averysecretpasswordPersonAppleWinter938
|
|
||||||
DB_NAME: stripe_invoice
|
|
||||||
DB_HOST: postgres
|
|
||||||
DB_PORT: "5432"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue