Update docker-compose example to version 3

Adds "depends_on"
This commit is contained in:
Ken Fehling
2018-05-21 08:11:45 -05:00
committed by steve-chavez
parent 88e3c8c4b6
commit 28c39e976c
+4 -1
View File
@@ -203,6 +203,8 @@ To avoid having to install the database at all, you can run both it and the serv
# docker-compose.yml # docker-compose.yml
version: '3'
services:
server: server:
image: postgrest/postgrest image: postgrest/postgrest
ports: ports:
@@ -213,7 +215,8 @@ To avoid having to install the database at all, you can run both it and the serv
PGRST_DB_URI: postgres://app_user:password@db:5432/app_db PGRST_DB_URI: postgres://app_user:password@db:5432/app_db
PGRST_DB_SCHEMA: public PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: app_user PGRST_DB_ANON_ROLE: app_user
depends_on:
- db
db: db:
image: postgres image: postgres
ports: ports: