[ADD] Permit to use a different postgreSQL port. 5433 by default
This commit is contained in:
parent
f8ecbe1d1a
commit
e211f62306
@ -11,6 +11,7 @@ GIT_BRANCH="dev" # Default Git Branch
|
|||||||
GIT_DIR_NAME="gissmo"
|
GIT_DIR_NAME="gissmo"
|
||||||
DOCKERFILE_NAME="Dockerfile"
|
DOCKERFILE_NAME="Dockerfile"
|
||||||
POSTGRES_VERSION="9.5"
|
POSTGRES_VERSION="9.5"
|
||||||
|
POSTGRES_PORT=5433
|
||||||
GISSMO_DOCKER_NAME="gissmo"
|
GISSMO_DOCKER_NAME="gissmo"
|
||||||
|
|
||||||
## User
|
## User
|
||||||
@ -174,7 +175,7 @@ config file)."
|
|||||||
create() {
|
create() {
|
||||||
test_create
|
test_create
|
||||||
init
|
init
|
||||||
$docker_cmd run -d -P -v "${DB_DIR}:/var/lib/postgresql/data" --name "${POSTGRES_DOCKER_NAME}" "postgres:${POSTGRES_VERSION}" || error_and_quit "Launching database docker container failed."
|
$docker_cmd run -d -p ${POSTGRES_PORT}:5432 -v "${DB_DIR}:/var/lib/postgresql/data" --name "${POSTGRES_DOCKER_NAME}" "postgres:${POSTGRES_VERSION}" || error_and_quit "Launching database docker container failed."
|
||||||
}
|
}
|
||||||
|
|
||||||
dev() {
|
dev() {
|
||||||
|
Loading…
Reference in New Issue
Block a user