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

Passing in username and password for the postgres database from pg_timetable in docker #661

Open
andyfensham opened this issue Oct 31, 2024 · 1 comment
Assignees
Labels
❓ question Further information is requested

Comments

@andyfensham
Copy link

Is your feature request related to a problem? Please describe.

To run pg_timetable according to your documentation you run the following docker command

docker run --rm -e PGTT_PGHOST=127.0.0.1 -e PGTT_PGPORT=5432 -e cybertecpostgresql/pg_timetable:latest -c worker001

I however don't see where I can pass in the username and password for the postgres database as environment variables e.g. something like user=scheduler password=somepassword

@pashagolub
Copy link
Collaborator

pashagolub commented Nov 2, 2024

Check, please, all available cmdopts and envvars here or just execute pg_timetable --help. One may use connection string as well, e.g.

pg_timetable --clientname=worker2 postgresql://userfoo:[email protected]:5432/dbname

@pashagolub pashagolub self-assigned this Nov 2, 2024
@pashagolub pashagolub added the ❓ question Further information is requested label Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants