Skip to content

Fix scripts for docker-compose examples to honor PostgreSQL/OpenSearch env vars#130

Merged
chaptersix merged 3 commits intotemporalio:mainfrom
bpteam:fix-postgres-opensearch-setup
Mar 7, 2026
Merged

Fix scripts for docker-compose examples to honor PostgreSQL/OpenSearch env vars#130
chaptersix merged 3 commits intotemporalio:mainfrom
bpteam:fix-postgres-opensearch-setup

Conversation

@bpteam
Copy link
Contributor

@bpteam bpteam commented Feb 20, 2026

What was changed

Changing PostgreSQL/OpenSearch settings in compose/scripts (db host, db username) for using env variables from docker compose files

Why?

Changing PostgreSQL/OpenSearch settings in docker-compose (db host, db username) could crash on first startup because init scripts were effectively using defaults instead of the compose-provided environment.

  1. How was this tested:
    Run commands with changed scripts
    docker compose -f compose/docker-compose.yml up
    docker compose -f compose/docker-compose-postgres.yml up
    docker compose -f compose/docker-compose-postgres-opensearch.yml up

  2. Any docs updates needed?
    No

Align the example configs so init scripts honor the environment variables
passed from docker-compose.

…h env vars

Changing PostgreSQL/OpenSearch settings in compose/scripts (db host, db username) could crash on first startup because init scripts were
effectively using defaults instead of the compose-provided environment.

Align the example configs so init scripts honor the environment variables
passed from docker-compose.
@bpteam bpteam requested a review from a team as a code owner February 20, 2026 16:26
@CLAassistant
Copy link

CLAassistant commented Feb 20, 2026

CLA assistant check
All committers have signed the CLA.

chaptersix and others added 2 commits March 7, 2026 00:21
Apply the same fix from the PostgreSQL scripts to the MySQL and
Cassandra setup scripts, replacing hardcoded hostnames, usernames,
and ports with compose-provided environment variables.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chaptersix
Copy link
Contributor

chaptersix commented Mar 7, 2026

Thanks for the fix @bpteam! This is a good catch -- the setup scripts were silently ignoring the compose-provided environment variables.


I applied the same fix to the MySQL and Cassandra setup scripts (setup-mysql.sh, setup-mysql-es.sh, setup-cassandra-es.sh) which had the same hardcoded values issue.

@chaptersix chaptersix merged commit 4ce9c5d into temporalio:main Mar 7, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants