Skip to content

Instantly share code, notes, and snippets.

@timwis timwis/docker-compose.yml
Last active Apr 12, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.