forked from prest/prest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 836 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (35 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: "3"
services:
postgres:
image: postgres:16
volumes:
- "./data/postgres:/var/lib/postgresql/data"
environment:
- POSTGRES_DB=prest
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
healthcheck:
test: [
"CMD-SHELL",
"pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"
]
interval: 30s
retries: 3
prest:
build: .
restart: on-failure
links:
- "postgres:postgres"
environment:
- PREST_DEBUG=true # remove comment to disable DEBUG mode
- PREST_PG_HOST=postgres
- PREST_PG_CACHE=false
- PREST_JWT_DEFAULT=false # toggle to use jwt
- PREST_CACHE_ENABLED=false
depends_on:
postgres:
condition: service_healthy
ports:
- "3000:3000"