remove unneeded docker run command in favor of docker compose
This commit is contained in:
parent
6e46115d9d
commit
2b5f7c2166
|
@ -10,12 +10,9 @@ set -o errtrace -o errexit -o nounset -o pipefail
|
|||
docker stop postgres_db_1 || echo ''
|
||||
mkdir -p "${HOME}/docker/volumes/postgres"
|
||||
|
||||
#docker pull postgres:latest
|
||||
#docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres
|
||||
|
||||
if command -v docker-compose >/dev/null ; then
|
||||
docker-compose -f docker-compose.yml up --no-start
|
||||
docker-compose -f docker-compose.yml start
|
||||
docker-compose -f postgres/docker-compose.yml up --no-start
|
||||
docker-compose -f postgres/docker-compose.yml start
|
||||
else
|
||||
docker compose -f postgres/docker-compose.yml up --no-start
|
||||
docker compose -f postgres/docker-compose.yml start
|
||||
|
|
Loading…
Reference in New Issue