mirror of https://github.com/vimagick/dockerfiles
update postgrest
This commit is contained in:
parent
01d834716f
commit
ccd9c938c8
|
@ -1,9 +1,37 @@
|
||||||
postgrest:
|
version: '3.7'
|
||||||
image: postgrest/postgrest
|
|
||||||
ports:
|
services:
|
||||||
- "3000:3000"
|
|
||||||
environment:
|
postgrest:
|
||||||
PGRST_DB_URI: postgres://username:password@postgres:5432/postgres
|
image: postgrest/postgrest
|
||||||
PGRST_DB_SCHEMA: public
|
ports:
|
||||||
PGRST_DB_ANON_ROLE: postgres
|
- "3000:3000"
|
||||||
restart: unless-stopped
|
environment:
|
||||||
|
PGRST_DB_URI: postgres://username:password@postgres:5432/test
|
||||||
|
PGRST_DB_SCHEMA: public
|
||||||
|
PGRST_DB_ANON_ROLE: postgres
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
swagger:
|
||||||
|
image: swaggerapi/swagger-ui
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
environment:
|
||||||
|
API_URL: http://postgrest:3000/
|
||||||
|
depends_on:
|
||||||
|
- postgrest
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:alpine
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- ./data:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: test
|
||||||
|
POSTGRES_USER: username
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
restart: unless-stopped
|
||||||
|
|
Loading…
Reference in New Issue