Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded values from docker-compose.yaml #23

Merged
merged 2 commits into from
Jun 23, 2024
Merged

Conversation

wadiim
Copy link
Collaborator

@wadiim wadiim commented Jun 22, 2024

Replace hardcoded values with variables from .env file. The current configuration does not work if somebody has set, for example, different value of POSTGRES_DB in the .env file than tabi-db.

Also, note that, I have extracted the port number from the DB_HOSTNAME variable into a new variable - DB_PORT, so if you had something like this:

DB_HOSTNAME=localhost:5432

you need to change it to this:

DB_HOSTNAME=localhost
DB_PORT=5432

Replace hardcoded values with variables from `.env` file.
The current configuration does not work if somebody has set, for
example, different value of `POSTGRES_DB` in the `.env` file than
`tabi-db`.
@wadiim wadiim requested a review from m-strzelec June 22, 2024 14:16
@m-strzelec m-strzelec merged commit f7a3dcc into main Jun 23, 2024
2 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.

2 participants