Skip to content

Commit

Permalink
Merge pull request #1690 from smilerz/master
Browse files Browse the repository at this point in the history
Add PostgreSQL container
  • Loading branch information
nemchik authored Nov 9, 2023
2 parents 63936e8 + da3ac08 commit 2e34766
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compose/.apps/postgres/postgres.aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
postgres:
image: postgres:${POSTGRES_TAG}
3 changes: 3 additions & 0 deletions compose/.apps/postgres/postgres.hostname.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
postgres:
hostname: ${DOCKERHOSTNAME}
13 changes: 13 additions & 0 deletions compose/.apps/postgres/postgres.labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
postgres:
labels:
com.dockstarter.appinfo.deprecated: "false"
com.dockstarter.appinfo.description: The PostgreSQL object-relational database system provides reliability and data integrity.
com.dockstarter.appinfo.nicename: Postgres
com.dockstarter.appvars.postgres_enabled: "false"
com.dockstarter.appvars.postgres_network_mode: ""
com.dockstarter.appvars.postgres_password: ""
com.dockstarter.appvars.postgres_port_5432: "5432"
com.dockstarter.appvars.postgres_restart: unless-stopped
com.dockstarter.appvars.postgres_tag: "16"
com.dockstarter.appvars.postgres_user: "postgres"
3 changes: 3 additions & 0 deletions compose/.apps/postgres/postgres.netmode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
postgres:
network_mode: ${POSTGRES_NETWORK_MODE}
4 changes: 4 additions & 0 deletions compose/.apps/postgres/postgres.ports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
postgres:
ports:
- ${POSTGRES_PORT_5432}:5432
3 changes: 3 additions & 0 deletions compose/.apps/postgres/postgres.x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
services:
postgres:
image: postgres:${POSTGRES_TAG}
17 changes: 17 additions & 0 deletions compose/.apps/postgres/postgres.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
services:
postgres:
container_name: postgres
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- TZ=${TZ}
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE}
max-size: ${DOCKERLOGGING_MAXSIZE}
restart: ${POSTGRES_RESTART}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${DOCKERCONFDIR}/postgres:/var/lib/postgresql/data
- ${DOCKERSTORAGEDIR}:/storage
17 changes: 17 additions & 0 deletions docs/apps/postgres.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PostgresSQL

[![Docker Pulls](https://img.shields.io/docker/pulls/_/postgres?style=flat-square&color=607D8B&label=docker%20pulls&logo=docker)](https://hub.docker.com/r/_/postgres)
[![GitHub Stars](https://img.shields.io/github/stars/docker-library/postgres?style=flat-square&color=607D8B&label=github%20stars&logo=github)](https://github.com/docker-library/postgres)
[![Compose Templates](https://img.shields.io/static/v1?style=flat-square&color=607D8B&label=compose&message=templates)](https://github.com/GhostWriters/DockSTARTer/tree/master/compose/.apps/postgres)

## Description

[Postgres](https://www.postgresql.org/): The World's Most Advanced Open Source Relational Database

## Install/Setup

PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development that has earned it a strong reputation for reliability, feature robustness, and performance.

There is a wealth of information to be found describing how to [install](https://www.postgresql.org/download/) and [use](https://www.postgresql.org/docs/) PostgreSQL through the [official documentation](https://www.postgresql.org/docs/). The [open source community](https://www.postgresql.org/community/) provides many helpful places to become familiar with PostgreSQL, discover how it works.

We **heavily** recommend that if you spin up a container that requires a database you create a user for that container. You should **NEVER** use the root account for anything other than database management.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ nav:
- apps/plexanisync.md
- apps/portainer.md
- apps/portaineragent.md
- apps/postgres.md
- apps/privoxyvpn.md
- apps/prometheus.md
- apps/prowlarr.md
Expand Down

0 comments on commit 2e34766

Please sign in to comment.