Fix bug with PGDATA location

This commit is contained in:
Greyscale 2025-03-03 14:35:08 +01:00
parent d58f583df8
commit 136094da5b
2 changed files with 1 additions and 3 deletions
products/postgres

View file

@ -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

View file

@ -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