One-shot container for adding PostgreSQL users, databases, extensions.
4.2K
One-shot container for adding PostgreSQL users, databases, extensions.
postgres-schema:
image: osshelp/postgres-schema:stable
restart: "no"
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DBS: "DB1_NAME:$USER1_PASSWORD, DB2_NAME:$USER2_PASSWORD"
networks:
- net
postgres-schema:
image: osshelp/postgres-schema:stable
deploy:
restart_policy:
condition: none
environment:
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_DBS: "DB1_NAME:$USER1_PASSWORD, DB2_NAME:$USER2_PASSWORD"
networks:
- net
| Setting | Default | Description |
|---|---|---|
POSTGRES_HOST | postgres | PostgreSQL host |
POSTGRES_PORT | 5432 | PostgreSQL port |
POSTGRES_USER | postgres | PostgreSQL superuser |
POSTGRES_PASSWORD | postgres | PostgreSQL superuser password |
POSTGRES_TIMEOUT | 60 | Timeout in seconds for wating PostgreSQL host connection |
POSTGRES_DBS | - | List of DB_NAME:PASSWORD (delimiter: space or comma. USERNAME is equal to DBNAME) |
POSTGRES_EXTENSIONS | - | List of PostgreSQL extensions (delimiter: space or comma) |
Source repository is available at Github here.
GPL3
OSSHelp Team, see https://oss.help
Content type
Image
Digest
sha256:9ef24d3ac…
Size
103.8 MB
Last updated
over 1 year ago
docker pull osshelp/postgres-schema