Skip to content

edd/docker-alpine-postgres-temporal-tables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostgreSQL + temporal_tables docker image based on Alpine Linux

Docker Automated build

Forked from kiasaki/docker-alpine-postgres.

This repo builds a docker image that accepts the same env vars as the official postgres build but with a much smaller footprint, and the temporal_tables extension installed. It achieves that by basing itself off the tiny official alpine linux image.

Build

$ make build

DockerHub

This image is published on DockerHub as docker pull eddhannay/alpine-postgres-temporal-tables.

Click here to see it's DockerHub homepage

Usage

This image works in the same way the official postgres docker image work.

It's documented on DockerHub in it's README: https://hub.docker.com/_/postgres/.

For example, you can start a basic PostgreSQL server, protected by a password, listening on port 5432 by running the following:

$ docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d kiasaki/alpine-postgres

Next, you can start you app's container while linking it to the PostgreSQL container you just created giving it access to it.

$ docker run --name some-app --link some-postgres:postgres -d application-that-uses-postgres

Your app will now be able to access POSTGRES_PORT_5432_TCP_ADDR and POSTGRES_PORT_5432_TCP_PORT environment variables.

License

MIT. See LICENSE file.

About

A docker postgres image with a small footprint

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 88.2%
  • Makefile 11.8%