generated from guidiego/next-ts-mui
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
52 lines (51 loc) · 1.25 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
version: "3"
services:
postgres:
image: postgres
volumes:
- "./data/postgres:/var/lib/postgresql/data"
- "./etc/postgres:/docker-entrypoint-initdb.d"
environment:
- POSTGRES_USER=prest
- POSTGRES_DB=prest
- POSTGRES_PASSWORD=prest
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "prest"]
interval: 30s
retries: 3
prestd:
# use latest build - analyze the risk of using this version in production
image: ghcr.io/prest/prest:beta
links:
- "postgres:postgres"
environment:
- PREST_DEBUG=false
- PREST_AUTH_ENABLED=false
- PREST_PG_HOST=postgres
- PREST_PG_USER=prest
- PREST_PG_PASS=prest
- PREST_PG_DATABASE=prest
- PREST_PG_PORT=5432
- PREST_SSL_MODE=disable
volumes:
- "./prest.toml:/app/prest.toml"
depends_on:
postgres:
condition: service_healthy
ports:
- "3000:3000"
# buildui:
# build: .
# links:
# - "prestd:prestd"
# environment:
# - PREST_URL=http://prestd:3000
# - PREST_DATABASE=prest
# - PREST_SCHEME=public
# depends_on:
# postgres:
# condition: service_healthy
# ports:
# - "3001:3001"