Skip to content

Commit

Permalink
Change postgres command to use running postgres image.
Browse files Browse the repository at this point in the history
Otherwise postgres server itself doesn't get started.
  • Loading branch information
Psykar committed Mar 4, 2019
1 parent 64b0b8e commit f50594a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/psql
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
COMPOSE_ENV=${COMPOSE_ENV:-local.yml}
CMD='PGPASSWORD=$POSTGRES_PASSWORD psql -h $POSTGRES_HOST -U $POSTGRES_USER -p $POSTGRES_PORT $POSTGRES_DB'

docker-compose -f $COMPOSE_ENV run --rm postgres \
docker-compose -f $COMPOSE_ENV exec postgres \
bash -c "$CMD"

0 comments on commit f50594a

Please sign in to comment.