Skip to content

Commit

Permalink
create compose by pREST docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <t@avelino.xxx>
  • Loading branch information
avelino committed Aug 20, 2020
1 parent a987afd commit f3745ea
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: "3"
services:
postgres:
image: postgres
volumes:
- "./data/postgres:/var/lib/postgresql/data"
environment:
- POSTGRES_USER=prest
- POSTGRES_DB=prest
- POSTGRES_PASSWORD=prest
ports:
- "5432:5432"
prest:
image: prest/prest:v1
links:
- "postgres:postgres"
environment:
- PREST_DEBUG=true # remove comment for enable DEBUG mode (disable JWT)
- PREST_PG_HOST=postgres
- PREST_PG_USER=prest
- PREST_PG_PASS=prest
- PREST_PG_DATABASE=prest
- PREST_PG_PORT=5432
- PREST_JWT_DEFAULT=false # remove if need jwt
depends_on:
- postgres
ports:
- "3000:3000"

0 comments on commit f3745ea

Please sign in to comment.