Skip to content

Instantly share code, notes, and snippets.

@timwis
Last active April 12, 2017 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timwis/4a8aadab0a1a5b08a39a4c48b43dc0fa to your computer and use it in GitHub Desktop.
Save timwis/4a8aadab0a1a5b08a39a4c48b43dc0fa to your computer and use it in GitHub Desktop.
PostgREST via docker-compose
version: '2'
services:
db:
image: postgres
volumes:
- ./scripts/contacts.sql:/docker-entrypoint-initdb.d/contacts.sql
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pwd
web:
depends_on:
- db
image: begriffs/postgrest
volumes:
- ./scripts/postgrest.conf:/etc/postgrest.conf
ports:
- "3000:3000"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: pwd
POSTGRES_DB: postgres
POSTGRES_HOST: db
POSTGRES_SCHEMA: public
POSTGRES_ANON_USER: postgres
db-uri = "postgres://postgres:pwd@db:5432/postgres"
db-schema = "public"
db-anon-role = "postgres"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment