mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-07-06 05:15:13 +08:00
Merge branch 'master' of https://github.com/sdusart/docker-postgresql into sdusart-master
This commit is contained in:
@@ -148,6 +148,8 @@ docker run --name postgresql -d \
|
||||
|
||||
will create a user *dbuser* with the password *dbpass*. It will also create a database named *dbname* and the *dbuser* user will have full access to the *dbname* database.
|
||||
|
||||
The `DB_LOCALE` environment variable can be used to configure the locale used for database creation. Its default value is set to C.
|
||||
|
||||
The `PSQL_TRUST_LOCALNET` environment variable can be used to configure postgres to trust connections on the same network. This is handy for other containers to connect without authentication. To enable this behavior, set `PSQL_TRUST_LOCALNET` to `true`.
|
||||
|
||||
For example,
|
||||
|
||||
Reference in New Issue
Block a user