yobasystems / alpine-postgres

Postgres running on Alpine Linux [Docker]
https://hub.docker.com/r/yobasystems/alpine-postgres/
12 stars 14 forks source link
alpine alpine-postgres database docker-image dockerfile postgres yobasystems

Postgres container image running on Alpine Linux

Docker Automated build Docker Pulls Docker Stars

Alpine Version Postgres Version

This container image (yobasystems/alpine-postgres) is based on the minimal Alpine Linux with Postgres 16.3 object-relational database server.

Alpine Version 3.20.2 (Released 2024-07-22)

Postgres Version 16.3

Table of Contents

πŸ”οΈ What is Alpine Linux?

Alpine Linux is a Linux distribution built around musl libc and BusyBox. The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here and you can see how their mantra fits in right at home with Container images.

What is Postgres?

PostgreSQL, often simply "Postgres", is an object-relational database management system (ORDBMS) with an emphasis on extensibility and standards-compliance. As a database server, its primary function is to store data, securely and supporting best practices, and retrieve it later, as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). It can handle workloads ranging from small single-machine applications to large Internet-facing applications with many concurrent users. Recent versions also provide replication of the database itself for security and scalability.

✨ Features

πŸ—οΈ Architectures

πŸ“ PLEASE CHECK TAGS BELOW FOR SUPPORTED ARCHITECTURES, THE ABOVE IS A LIST OF EXPLANATION

🏷️ Tags

πŸ“ Layers & Sizes

Version MicroBadger Layers (tag) MicroBadger Size (tag)

Version MicroBadger Layers (tag) MicroBadger Size (tag)

Version MicroBadger Layers (tag) MicroBadger Size (tag)

Volume structure

πŸš€ How to use this image

Environment Variables:

The PostgreSQL image uses several environment variables which are easy to miss. While none of the variables are required, setting a password as a minimum will ensure some degree of security when using the image.

Main Postgres parameters:

https://www.postgresql.org/

Creating an instance

docker run --name some-postgres -e POSTGRES_PASSWORD=RaNd0MpA55W0Rd -d yobasystems/alpine-postgres

It will create a new db called "postgres", with user "postgres" and set root password of "RaNd0MpA55W0Rd".

Docker Compose example:

(Please pass your own credentials, don't use these ones for production!!)

mysql:
  image: yobasystems/alpine-postgres:16.3
  environment:
    POSTGRES_DB: salesdb
    POSTGRES_USER: johnsmith
    POSTGRES_PASSWORD=RaNd0MpA55W0Rd
  expose:
    - "5432"
  volumes:
    - /data/postgres/pgdata:/var/lib/postgresql/data
  restart: always

πŸ” Image contents & Vulnerability analysis

PACKAGE NAME PACKAGE VERSION VULNERABILITIES

πŸ“š Source Repositories

🐳 Container Registries

πŸ”— Links

πŸ’° Donation

BMAC

BITCOIN

ETHEREUM