Skip to content

Commit

Permalink
Postgres Port with Var
Browse files Browse the repository at this point in the history
  • Loading branch information
mleist committed Feb 12, 2024
1 parent 3e3b737 commit 4c24e44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ services:
- prod_postgres_data:/var/lib/postgresql/data:Z
- prod_postgres_data_backups:/backups:z
ports:
- "5432:5432"
- "${D4SERVICE_POSTGRES_PORT}:5432"
env_file:
- envs/production/postgres
{%- endif -%}
Expand Down
3 changes: 3 additions & 0 deletions {{cookiecutter.project_slug}}/dotenv.dist
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ D4SERVICE_OAUTH2_TOKEN_ENDPOINT={{cookiecutter.d4service_oauth2_token_endpoint}}
D4SERVICE_OAUTH2_JWKS_URI={{cookiecutter.d4service_oauth2_jwks_uri}}
D4SERVICE_OAUTH2_USERINFO_ENDPOINT={{cookiecutter.d4service_oauth2_userinfo_endpoint}}
{%- endif %}
{%- if cookiecutter.enable_postgres == "y" %}
D4SERVICE_POSTGRES_PORT={{cookiecutter.d4service_postgres_port}}
{%- endif %}
{%- if cookiecutter.enable_test_opa == "y" %}
D4SERVICE_OPA_URI={{cookiecutter.d4service_opa_uri}}
D4SERVICE_OPA_PORT={{cookiecutter.d4service_opa_port}}
Expand Down

0 comments on commit 4c24e44

Please sign in to comment.