-
-
Notifications
You must be signed in to change notification settings - Fork 132
/
docker-compose.yml
58 lines (53 loc) · 1.41 KB
/
docker-compose.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
services:
minha-receita:
build: .
ports:
- 8000:8000
env_file:
- .env
volumes:
- ./data:/mnt/data
postgres:
image: postgres:16.1-bookworm
ports:
- 5432:5432
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment: &credentials
POSTGRES_PASSWORD: minhareceita
POSTGRES_USER: minhareceita
POSTGRES_DB: minhareceita
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U $${POSTGRES_USER}'"]
interval: 10s
timeout: 5s
retries: 5
postgres_test:
image: postgres:16.1-bookworm
ports:
- 5555:5432
environment: *credentials
command: ["postgres", "-c", "log_statement=all"]
prest:
image: ghcr.io/prest/prest@sha256:78bb1a5b043576dcffdc383fd5fdc02a74a33d9a2b9532cabad9e0f907fa81ac
ports:
- 8081:8081
depends_on:
postgres:
condition: service_healthy
environment:
- PREST_DEBUG=true
- PREST_AUTH_ENABLED=false
- PREST_PG_HOST=postgres
- PREST_PG_USER=minhareceita
- PREST_PG_PASS=minhareceita
- PREST_PG_DATABASE=minhareceita
- PREST_PG_PORT=5432
- PREST_SSL_MODE=disable
- PREST_CACHE_ENABLED=false
- PREST_CACHE=false
- PREST_HTTP_PORT=8081
- PREST_QUERIES_LOCATION=/prest/data/queries/
- PREST_CONF=/prest/data/config/prest.toml
volumes:
- ./api/:/prest/data/