-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1690 from smilerz/master
Add PostgreSQL container
- Loading branch information
Showing
9 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
services: | ||
postgres: | ||
image: postgres:${POSTGRES_TAG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
services: | ||
postgres: | ||
hostname: ${DOCKERHOSTNAME} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
services: | ||
postgres: | ||
network_mode: ${POSTGRES_NETWORK_MODE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
services: | ||
postgres: | ||
ports: | ||
- ${POSTGRES_PORT_5432}:5432 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
services: | ||
postgres: | ||
image: postgres:${POSTGRES_TAG} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters