An open API service indexing awesome lists of open source software.

https://github.com/wayofdev/docker-postgres

Docker images with postgres for local and production environments.
https://github.com/wayofdev/docker-postgres

ansible docker postgres

Last synced: 10 months ago
JSON representation

Docker images with postgres for local and production environments.

Awesome Lists containing this project

README

          








Build Status
Latest Version
Docker Pulls
Software License
Commits since latest release


# Docker Image: PostgreSQL

This image is used together with [wayofdev/docker-php-dev](https://github.com/wayofdev/docker-php-dev) and other WOD images, to create local development environment for our projects.

Has built in, enabled support for:

* UUID's — covered by uuid-ossp extension
* ULID's — implemented by [custom extension by Dave Allie](https://blog.daveallie.com/ulid-primary-keys)

If you **like/use** this repository, please consider **starring** it. Thanks!

![Screenshot](assets/screenshot.png)

## ⚙️ Development

To install dependencies and start development you can check contents of our `Makefile`

### → Requirments

For testing purposes we use **goss** and **dgoss**, follow installation instructions on [their official README](https://github.com/aelsabbahy/goss/blob/master/extras/dgoss/README.md)


### → Building locally

Generating distributable Dockerfiles from yaml source code:

```bash
$ make generate
```


Building default image:

```bash
$ git clone git@github.com:wayofdev/docker-postgres.git
$ make build
```

To **build** image, **test** it and then **clean** temporary files run:

```bash
$ make
```

Building all images:

```bash
$ make build TEMPLATE="15-alpine"
$ make build TEMPLATE="14-alpine"
```


## 🧪 Testing

Testing default image:

```bash
$ make test
```

To test all images:

```bash
$ make test TEMPLATE="15-alpine"
$ make test TEMPLATE="14-alpine"
```


### → Code quality tools

Run **yamllint** to validate all yaml files in project:

```bash
$ make lint
```

Run hadolint to validate created Dockerfiles:

```bash
$ make hadolint
```


## 🤝 License

[![Licence](https://img.shields.io/github/license/wayofdev/docker-postgres?style=for-the-badge&color=blue)](./LICENSE)


## 🙆🏼‍♂️ Author Information

This repository was created in **2022** by [lotyp / wayofdev](https://github.com/wayofdev).


## 🫡 Contributors