-
Notifications
You must be signed in to change notification settings - Fork 5
Home
piccaso edited this page May 4, 2022
·
4 revisions
docker-compose exec db pg_dumpall -U postgres --clean --if-exists > dump.sql
make sure instance is empty. remove volumes before restart maybe like so: docker-compose down -v
cat dump.sql | docker-compose exec -T db psql -U postgres
docker run -p 5432:5432 --name pg-dev --restart unless-stopped -e POSTGRES_PASSWORD=1234 -d postgres:alpine postgres -c fsync=off -c full_page_writes=off -c synchronous_commit=OFF -c log_statement=all -c log_destination=stderr