Skip to content

Razeen/docker-postgrest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Docker PostgREST

Go to Docker Hub

PostgREST serves a fully RESTful API from any existing PostgreSQL database. It provides a cleaner, more standards-compliant, faster API than you are likely to write from scratch.

Installation

The easiest way to get this docker image installed is to pull the latest version from the Docker registry:

$ docker pull suzel/docker-postgrest

Build the docker-postgrest:

$ git clone https://github.com/suzel/docker-postgrest.git
$ cd docker-postgrest/
$ docker build -t suzel/docker-postgrest .

Usage

Start your image binding external port 3000 in all interfaces to your container:

$ docker run --name postgrest-service \
             -p 3000:3000 \
             -e POSTGREST_VERSION=0.3.0.3 \
             -e POSTGREST_DBHOST=localhost \
             -e POSTGREST_DBPORT=5432 \
             -e POSTGREST_DBNAME=database1 \
             -e POSTGREST_DBUSER=user \
             -e POSTGREST_DBPASS=password \
             -d suzel/docker-postgrest

You can the visit the following URL in a browser on your host machine to get started:

open http://$(docker-machine ip default):3000/<database_table>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages