Last active
April 12, 2017 11:36
-
-
Save timwis/4a8aadab0a1a5b08a39a4c48b43dc0fa to your computer and use it in GitHub Desktop.
PostgREST via docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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