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

Fixes for secret #3

Merged
merged 1 commit into from Jul 15, 2016
Merged

Fixes for secret #3

merged 1 commit into from Jul 15, 2016

Conversation

teoincontatto
Copy link

I found ~/.toropass file is not created anymore and it is necessary for ToroDB to start. This is different from ~/.pgpass that store the postgres superuser password and is removed after initialization.

Also I removed passwords from Dockerfiles and docker-compose.yml but specified the env variable key instead in docker-compose.yml so the user can customize the password when starting up docker compose with:

POSTGRES_PASSWORD=mypostgrespass TORODB_PASSWORD=mytorodbpass docker-compose up

Or just start it without security configuration.

Too bad I can not find a better way to setup security for this docker compose but this seems to be an old feature request still not handled by docker.

Superuser postgres will be created with password specified by
environment variable POSTGRES_PASSWORD. By default postgres user can
login without any password.

Removed superuser privileges to torodb user.

User torodb will be created with password specified by environment
variable TORODB_PASSWORD. Default torodb user password is 'trustme'.

Assign environment variable to empty value after starting ToroDB.

Superuser postgres will be created with password specified by
environment variable POSTGRES_PASSWORD. By default postgres user can
access without password password.
Removed superuser privileges to torodb user.
User torodb will be created with password specified by environment
variable TORODB_PASSWORD. Default torodb user password is 'trustme'.
Assign environment variable to empty value after starting ToroDB.
@GermanDZ GermanDZ merged commit 328ddbd into GermanDZ:dockerization Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants