Home

Awesome

PostgreSQL Docker Container Image

Build Status Docker Pulls Docker Stars

Docker Images

❗For better reliability we release images with stability tags (wodby/postgres:16-X.X.X) which correspond to git tags. We strongly recommend using images only with stability tags.

Overview:

Supported tags and respective Dockerfile links:

All images built for linux/amd64 and linux/arm64

Environment Variables

VariableDefault ValueDescription
POSTGRES_CHECKPOINT_COMPLETION_TARGET0.7
POSTGRES_CHECKPOINT_SEGMENTS32<=9.4
POSTGRES_DATESTYLEiso, mdy
POSTGRES_DBpostgres
POSTGRES_DEFAULT_STATISTICS_TARGET100
POSTGRES_DEFAULT_TEXT_SEARCH_CONFIGpg_catalog.english
POSTGRES_EFFECTIVE_CACHE_SIZE1GB
POSTGRES_DB_EXTENSIONSSeparated by comma
POSTGRES_LC_MESSAGESen_US.utf8
POSTGRES_LC_MONETARYen_US.utf8
POSTGRES_LC_NUMERICen_US.utf8
POSTGRES_LC_TIMEen_US.utf8
POSTGRES_LOG_TIMEZONEUTC
POSTGRES_MAINTENANCE_WORK_MEM128MB
POSTGRES_MAX_CONNECTIONS100
POSTGRES_MAX_WAL_SIZE2GB>=9.5
POSTGRES_MIN_WAL_SIZE1GB>=9.5
POSTGRES_SHARED_BUFFERS512MB
POSTGRES_SHARED_MEMORY_TYPEposix>=9.4
POSTGRES_TIMEZONEUTC
POSTGRES_PASSWORDREQUIRED
POSTGRES_USERpostgres
POSTGRES_WAL_BUFFERS16MB
POSTGRES_WORK_MEM5MB

Orchestration Actions

Usage:

make COMMAND [params ...]
 
commands:
    import source=</path/to/dump.zip or http://example.com/url/to/dump.sql.gz> [user password db host  binary] 
    backup filepath=</path/to/backup.sql.gz> [user password host db ignore=<"table1;table2"> nice ionice] 
    query query=<SELECT 1> [user password db host] 
    query-silent query=<SELECT 1> [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 Wodby.