[ADD] Launch script: Open port for postgreSQL Docker container
This commit is contained in:
parent
8690b2897c
commit
9bc5795300
@ -147,7 +147,7 @@ create() {
|
||||
test_create
|
||||
init
|
||||
$docker_cmd create -v "${DB_DIR}:/var/lib/postgresql/data" --name "${DB_VOLUME_NAME}" "postgres:${POSTGRES_VERSION}" || error_and_quit "Initial database 'docker create' failed."
|
||||
$docker_cmd run -d --volumes-from "${DB_VOLUME_NAME}" --name "${POSTGRES_DOCKER_NAME}" "postgres:${POSTGRES_VERSION}" || error_and_quit "Launching database docker container failed."
|
||||
$docker_cmd run -d -P --volumes-from "${DB_VOLUME_NAME}" --name "${POSTGRES_DOCKER_NAME}" "postgres:${POSTGRES_VERSION}" || error_and_quit "Launching database docker container failed."
|
||||
}
|
||||
|
||||
dev() {
|
||||
|
Loading…
Reference in New Issue
Block a user