Skip to content

Instantly share code, notes, and snippets.

sudo -u postgres psql -U postgres -d postgres -c "UPDATE \"user\" SET \"password\" = 'test' WHERE \"name\" = 'admin'"
docker run -d \
--name postgres \
-p 5432:5432 \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_USER=postgres \
-e POSTGRES_DB=postgres \
-v postgresql_data=/var/lib/postgresql/data \
postgres