- docker pull bitnami/postgresql
- docker run --name postgresql-server -e POSTGRESQL_PASSWORD=pass bitnami/postgresql:latest
- docker exec -it 216f6bbce3ec bash
-
psql -U postgres
& password -> pass - create database mydb;
- create user lpkf with password 'mypass';
- ALTER USER lpkf with superuser;
- ALTER DATABASE mydb OWNER to lpkf;
- grant all privileges on database mydb to lpkf;
- pgAdmin -> password -> pass & 2403
- Create a new ser