mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
init: added support for paintedfox/postgresql image
This commit is contained in:
parent
3c6dc4f451
commit
ac2fe9bc37
@ -382,6 +382,7 @@ docker run --name=gitlab -d --link postgresql:postgresql \
|
||||
The image will automatically fetch the `DB_NAME`, `DB_USER` and `DB_PASS` variables from the postgresql container using the magic of docker links and works with the following images:
|
||||
- [sameersbn/postgresql](https://registry.hub.docker.com/u/sameersbn/postgresql/)
|
||||
- [orchardup/postgresql](https://registry.hub.docker.com/u/orchardup/postgresql/)
|
||||
- [paintedfox/postgresql](https://registry.hub.docker.com/u/paintedfox/postgresql/)
|
||||
|
||||
## Redis
|
||||
|
||||
|
||||
@ -142,6 +142,11 @@ elif [ -n "${POSTGRESQL_PORT_5432_TCP_ADDR}" ]; then
|
||||
DB_USER=${DB_USER:-${POSTGRESQL_ENV_POSTGRESQL_USER}}
|
||||
DB_PASS=${DB_PASS:-${POSTGRESQL_ENV_POSTGRESQL_PASS}}
|
||||
DB_NAME=${DB_NAME:-${POSTGRESQL_ENV_POSTGRESQL_DB}}
|
||||
|
||||
# support for linked paintedfox/postgresql image
|
||||
DB_USER=${DB_USER:-${POSTGRESQL_ENV_USER}}
|
||||
DB_PASS=${DB_PASS:-${POSTGRESQL_ENV_PASS}}
|
||||
DB_NAME=${DB_NAME:-${POSTGRESQL_ENV_DB}}
|
||||
fi
|
||||
|
||||
# set default user and database
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user