Fix bug with PGDATA location
This commit is contained in:
parent
d58f583df8
commit
136094da5b
2 changed files with 1 additions and 3 deletions
products/postgres
|
@ -16,11 +16,9 @@ output "ports" {
|
|||
output "docker_service" {
|
||||
value = module.service.docker_service
|
||||
}
|
||||
|
||||
output "endpoint" {
|
||||
value = "postgres://${local.username}:${local.password}@${module.service.service_name}:5432/${local.database}"
|
||||
}
|
||||
|
||||
output "pgadmin_config" {
|
||||
value = {
|
||||
"Group" = var.stack_name
|
||||
|
|
|
@ -12,7 +12,7 @@ module "service" {
|
|||
POSTGRES_USER = local.username
|
||||
POSTGRES_PASSWORD = local.password
|
||||
POSTGRES_DB = local.database
|
||||
PGDATA = "/var/lib/postgres/data"
|
||||
PGDATA = "/var/lib/postgres/data/pgdata"
|
||||
}
|
||||
volumes = local.volumes
|
||||
mounts = local.mounts
|
||||
|
|
Loading…
Reference in a new issue