Доброго дня.
Пытаюсь развернуть локальную БД с помощью docker. Мой compose:
version: '3.5'
services:
db:
container_name: "db"
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: db
POSTGRES_PASSWORD: root
POSTGRES_USER: admin
Результат билда:
LOG: database system is ready to accept connections
Но при попытке подключении в терминал возвращается следующее:
db | 2023-09-26 19:15:09.868 UTC [40] FATAL: password authentication failed for user "admin"
db | 2023-09-26 19:15:09.868 UTC [40] DETAIL: Role "admin" does not exist.
db | Connection matched file "/var/lib/postgresql/data/pg_hba.conf" line 128: "host all all all scram-sha-256"