Based on bitnami/postgresql container with the following additions:
pgcli.psycopg2.nano.sql.Here's an example docker-compose.yaml data:
services:
postgresql:
container_name: postgresql
image: rlutowsk/postgresql:latest
ports:
- '65432:5432'
volumes:
- /tmp/sql:/sql
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
After executing
docker exec -it -e HOME=/home/sql -w /sql -u sql postgresql /bin/bash
on the host machine, you'll be logged in the container in the shared folder /sql.
Content type
Image
Digest
sha256:12e37224a…
Size
140 MB
Last updated
over 1 year ago
docker pull rlutowsk/postgresql