This images is based on PostgreSQL 11 and PostGIS 2.5 Docker image and includes osml10n extension - OSM-specific label manipulation support.
Run a PostgreSQL container and mount it to a persistent data directory outside.
In this example we start up the container and create a database osm with the owner osm and password osm
and mount our local directory ./data as storage.
docker run \
    -v $(pwd)/data:/var/lib/postgresql/data \
    -e POSTGRES_DB="osm" \
    -e POSTGRES_USER="osm" \
    -e POSTGRES_PASSWORD="osm" \
    -d sophox/postgisdocker build -t sophox/postgis .