Sign inSign up

innovesys/postgresql-windows

By innovesys

Updated 12 months ago

Lightweight Windows images for PostgreSQL 17, 18

Image
Databases & storage
2

2.3K

innovesys/postgresql-windows repository overview

PostgreSQL on Windows

This repository contains the Dockerfile and entrypoint script to build a Docker image for PostgreSQL running on Windows containers.

Supported Tags

Usage

To build and run the Docker image, follow these steps:

  1. Build the Image:

    docker build -t postgres-windows -f Dockerfile.nanoserver-ltsc2025 .
    
  2. Run the Container:

    docker run -d -p 5432:5432 --isolation process postgres-windows
    

Note

Running the container with `--isolation process` is recommended to avoid shared memory issues.

Environment Variables

  • POSTGRES_DB: The name of the default database to create. Defaults to postgres.
  • POSTGRES_USER: The username for the PostgreSQL database. Defaults to postgres.
  • POSTGRES_PASSWORD: The password for the PostgreSQL database. Defaults to POSTGRES_USER's value.

Volumes

To persist data, you can mount a volume to the PostgreSQL data directory:

docker run -d -p 5432:5432 -v "$(pwd)/data:c:/pgsql/data" --isolation process postgres-windows

Tag summary

Content type

Image

Digest

sha256:9952357af

Size

780 MB

Last updated

12 months ago

docker pull innovesys/postgresql-windows