'Docker Postgres container not creating expected database
I am launching a Postgres database via docker-compose, with...
Version: "3.7"
services:
db:
image: "postgres"
container_name: db
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_DB: good_day
POSTGRES_USER: ian
POSTGRES_PASSWORD: ian
volumes:
- gd-data:/var/lib/postgresql/data/
volumes:
gd-data:
When I login to the Postgres database from my 'DBeaver' db client, I am not seeing a 'good_day' schema
Is that correct?
Solution 1:[1]
Solved it.
The problem is with 'DBeaver'...
The initial login for its postgres connector only seems to support 'postgres' as the database.
To see other databases requires that the 'Show all databases' option be enabled
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user2868835 |


