Fix outdated environment variable for docker compose

Also removed a deprecated `links` setting from the docker-compose, since that's not needed any more
This commit is contained in:
Joshua Taillon
2020-12-08 21:09:46 +01:00
committed by Wolfgang Walther
parent b0ba2f709c
commit a4fe838308
+1 -3
View File
@@ -172,13 +172,11 @@ To avoid having to install the database at all, you can run both it and the serv
image: postgrest/postgrest image: postgrest/postgrest
ports: ports:
- "3000:3000" - "3000:3000"
links:
- db:db
environment: environment:
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 #In production this role should not be the same as the one used for the connection PGRST_DB_ANON_ROLE: app_user #In production this role should not be the same as the one used for the connection
PGRST_SERVER_PROXY_URI: "http://127.0.0.1:3000" PGRST_OPENAPI_SERVER_PROXY_URI: "http://127.0.0.1:3000"
depends_on: depends_on:
- db - db
db: db: