Docker PostgresSQL
// Access bash from postgres container
docker exec -it <DOCKERCONTAINER_NAME> bash
// Access with defined user in docker-compose.yaml
psql -U postgres
version: "3.1"
services:
db:
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432