# ContainerId shell mode
docker exec -it dd4a9e6684d1 sh
# username
psql -U sixhands
sudo -u postgres psql
CREATE DATABASE <myproject>;
CREATE USER gardiys WITH PASSWORD 'password';
ALTER ROLE gardiys SET client_encoding TO 'utf8';
ALTER ROLE gardiys SET default_transaction_isolation TO 'read committed';
ALTER ROLE gardiys SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE <myproject> TO gardiys;
- В операционную систему
- [В Docker контейнер]