Sign inSign up

techthinkerorg/postgresql

By techthinkerorg

Updated about 2 years ago

Image
0

436

techthinkerorg/postgresql repository overview

Run using docker compose

  • Create docker-compose.yml
version: "3.8"
services:
  postgres:
    image: techthinkerorg/postgresql:16
    container_name: postgres
    ports:
      - 5432:5432
    networks:
      - net
    env_file: .env
    volumes:
      - postgres-data:/bitnami/postgresql
networks:
  net: null
volumes:
  postgres-data: null
  • Create .env
POSTGRESQL_HOST=postgres
POSTGRESQL_PORT=5432
POSTGRESQL_POSTGRES_PASSWORD=postgres
POSTGRESQL_DATABASE=sampledb
POSTGRESQL_USERNAME=sampleuser
POSTGRESQL_PASSWORD=samplepassword
  • Run docker compose
docker compose up -d

Note: This is a version locked docker image from bitnami.

Tag summary

Content type

Image

Digest

sha256:3570624e5

Size

103.6 MB

Last updated

about 2 years ago

docker pull techthinkerorg/postgresql:16