https://github.com/wodby/postgres
PostgreSQL docker container image
https://github.com/wodby/postgres
alpine docker postgres postgresql
Last synced: about 1 year ago
JSON representation
PostgreSQL docker container image
- Host: GitHub
- URL: https://github.com/wodby/postgres
- Owner: wodby
- License: mit
- Created: 2017-05-11T11:06:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T02:32:51.000Z (about 1 year ago)
- Last Synced: 2025-04-15T05:46:55.038Z (about 1 year ago)
- Topics: alpine, docker, postgres, postgresql
- Language: Shell
- Homepage: https://wodby.com/stacks/postgres
- Size: 259 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PostgreSQL Docker Container Image
[](https://github.com/wodby/postgres/actions)
[](https://hub.docker.com/r/wodby/postgres)
[](https://hub.docker.com/r/wodby/postgres)
## Docker Images
❗For better reliability we release images with stability tags (`wodby/postgres:16-X.X.X`) which correspond to [git tags](https://github.com/wodby/postgres/releases). We strongly recommend using images only with stability tags.
Overview:
- All images based on Alpine Linux
- Base image: [postgres](https://github.com/docker-library/postgres)
- [GitHub actions builds](https://github.com/wodby/postgres/actions)
- [Docker Hub](https://hub.docker.com/r/wodby/postgres)
[_(Dockerfile)_]: https://github.com/wodby/postgres/tree/master/Dockerfile
Supported tags and respective `Dockerfile` links:
- `17`, `latest` [_(Dockerfile)_]
- `16` [_(Dockerfile)_]
- `15` [_(Dockerfile)_]
- `14` [_(Dockerfile)_]
- `13` [_(Dockerfile)_]
All images built for `linux/amd64` and `linux/arm64`
## Environment Variables
| Variable | Default Value | Description |
|-----------------------------------------|----------------------|--------------------|
| `POSTGRES_CHECKPOINT_COMPLETION_TARGET` | `0.7` | |
| `POSTGRES_CHECKPOINT_SEGMENTS` | `32` | <=9.4 |
| `POSTGRES_DATESTYLE` | `iso, mdy` | |
| `POSTGRES_DB` | `postgres` | |
| `POSTGRES_DEFAULT_STATISTICS_TARGET` | `100` | |
| `POSTGRES_DEFAULT_TEXT_SEARCH_CONFIG` | `pg_catalog.english` | |
| `POSTGRES_EFFECTIVE_CACHE_SIZE` | `1GB` | |
| `POSTGRES_DB_EXTENSIONS` | | Separated by comma |
| `POSTGRES_LC_MESSAGES` | `en_US.utf8` | |
| `POSTGRES_LC_MONETARY` | `en_US.utf8` | |
| `POSTGRES_LC_NUMERIC` | `en_US.utf8` | |
| `POSTGRES_LC_TIME` | `en_US.utf8` | |
| `POSTGRES_LOG_TIMEZONE` | `UTC` | |
| `POSTGRES_MAINTENANCE_WORK_MEM` | `128MB` | |
| `POSTGRES_MAX_CONNECTIONS` | `100` | |
| `POSTGRES_MAX_WAL_SIZE` | `2GB` | >=9.5 |
| `POSTGRES_MIN_WAL_SIZE` | `1GB` | >=9.5 |
| `POSTGRES_SHARED_BUFFERS` | `512MB` | |
| `POSTGRES_SHARED_MEMORY_TYPE` | `posix` | >=9.4 |
| `POSTGRES_TIMEZONE` | `UTC` | |
| `POSTGRES_PASSWORD` | | REQUIRED |
| `POSTGRES_USER` | `postgres` | |
| `POSTGRES_WAL_BUFFERS` | `16MB` | |
| `POSTGRES_WORK_MEM` | `5MB` | |
## Orchestration Actions
Usage:
```
make COMMAND [params ...]
commands:
import source= [user password db host binary]
backup filepath= [user password host db ignore=<"table1;table2"> nice ionice]
query query= [user password db host]
query-silent query= [user password db host]
check-ready [user password db host max_try wait_seconds delay_seconds]
default params values:
user $POSTGRES_USER
password $POSTGRES_PASSWORD
db $POSTGRES_DB
host localhost
max_try 1
wait_seconds 1
delay_seconds 0
ignore ""
binary 0
nice 10
ionice 7
```
## Deployment
Deploy PostgreSQL to your server via [ Wodby](https://wodby.com/stacks/postgres).