postgres: fix variable name (#1782)

* postgres: fix variable name

* bump

* fix test
This commit is contained in:
Stavros Kois
2025-03-04 17:35:11 +02:00
committed by GitHub
parent 0b0850a501
commit 517bd3e07f
70 changed files with 7 additions and 7 deletions

View File

@@ -27,4 +27,4 @@ sources:
- https://hub.docker.com/_/postgres
title: Postgres
train: community
version: 1.0.18
version: 1.0.19

View File

@@ -1,5 +1,5 @@
categories:
- storage
- database
icon_url: https://media.sys.truenas.net/apps/postgres/icons/icon.png
screenshots: []
tags:

View File

@@ -17,7 +17,7 @@
{% do c1.ports.add_port(values.network.tcp_port, values.network.tcp_port) %}
{% do c1.environment.add_env("POSTGRES_PORT", values.network.tcp_port) %}
{% do c1.environment.add_env("PGPORT", values.network.tcp_port) %}
{% do c1.environment.add_env("POSTGRES_PASSWORD", values.postgres.password) %}
{% do c1.environment.add_env("POSTGRES_USER", values.postgres.user) %}
{% do c1.environment.add_env("POSTGRES_DB", values.postgres.database) %}

View File

@@ -7,7 +7,7 @@ postgres:
database: postgres
network:
tcp_port: 5432
tcp_port: 8080
host_network: false
ix_volumes:

View File

@@ -56,7 +56,7 @@ class PostgresContainer:
"POSTGRES_USER": config["user"],
"POSTGRES_PASSWORD": config["password"],
"POSTGRES_DB": config["database"],
"POSTGRES_PORT": port,
"PGPORT": port,
}
for k, v in common_variables.items():

View File

@@ -82,7 +82,7 @@ def test_add_postgres(mock_values):
"POSTGRES_USER": "test_user",
"POSTGRES_PASSWORD": "test_@password",
"POSTGRES_DB": "test_database",
"POSTGRES_PORT": "5432",
"PGPORT": "5432",
}
assert output["services"]["pg_container"]["depends_on"] == {
"perms_container": {"condition": "service_completed_successfully"},

View File

@@ -1,2 +1,2 @@
0.0.1: f074617a82a86d2a6cc78a4c8a4296fc9d168e456f12713e50c696557b302133
2.1.16: dac15686f882b9ce65b8549a3d5c0ed7bafe2df7a9028880d1a99b0ff4af1eff
2.1.17: fac0bd3f679320fc7366687de39b822c1c53241b4aa0cb85080d6d6843322154