dev info for docker user
Test Workflow / test (push) Has been cancelled

This commit is contained in:
vladp
2026-01-16 23:59:07 +07:00
parent 0ed3f958ff
commit 5027920199
3 changed files with 20 additions and 7 deletions
+20
View File
@@ -1,3 +1,18 @@
Создаем сеть:
docker network create app-network
Войти в БД:
docker exec -it postgres psql -U ncp_db -d no_copy_
Выполнить команду:
\du
Должен быть один пользователь:
List of roles
Role name | Attributes
-----------+------------------------------------------------------------
ncp_db | Superuser, Create role, Create DB, Replication, Bypass RLS
суперпользователь БД:
postgres/postgres
пользователь бд для бэка
@@ -46,3 +61,8 @@ GRANT ALL ON TABLES TO ncp_db;
ALTER DEFAULT PRIVILEGES IN SCHEMA public
GRANT ALL ON SEQUENCES TO ncp_db;
Зайти в контейнер:
docker exec -it {name} bash