Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (35 sloc) 1.19 KB
date title type menu weight
2016-04-23 15:21:22 +0200
Pre-existing database
homepage
getting-started
parent
running
4

Even though there were four ways to install pREST there's mostly two ways to run it.

  1. With the binary or homebrew or go get
  2. With Docker or Docker Compose

With the binary or homebrew or go get

If you install pREST by downloading the binary or using Homebrew or using go get, you must pass the necessary variables binary as follows:

PREST_PG_USER=postgres \
PREST_PG_DATABASE=prest \
PREST_PG_PORT=5432 \
PREST_HTTP_PORT=3010 \
prest # Binary installed

With docker

Considering you already did the pull in the previous step:

docker run -e PREST_HTTP_PORT=3000 \
	-e PREST_PG_HOST=127.0.0.1 \
	-e PREST_PG_USER=postgres \
	-e PREST_PG_PASS=pass \
	prest/prest

or if use Docker Compose (there's an example in the repository)

docker-compose up

For more details on how to configure and other environment variables got to Configurations

You can’t perform that action at this time.