-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.self-host.yml
More file actions
54 lines (51 loc) · 1.27 KB
/
docker-compose.self-host.yml
File metadata and controls
54 lines (51 loc) · 1.27 KB
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
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: approva
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- approva_open_core_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d approva"]
interval: 5s
timeout: 5s
retries: 10
approva-api:
build:
context: ../..
dockerfile: apps/api/Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- ../env/open-core.self-host.root.env
- ../env/open-core.self-host.api.env
environment:
NODE_ENV: production
PORT: 4000
command: >
sh -lc "pnpm prisma db push --skip-generate && pnpm --filter @approva/api start"
ports:
- "4000:4000"
approva-console:
build:
context: ../..
dockerfile: apps/approval-ui/Dockerfile
restart: unless-stopped
depends_on:
- approva-api
env_file:
- ../env/open-core.self-host.root.env
- ../env/open-core.self-host.ui.env
environment:
NODE_ENV: production
PORT: 3000
NEXT_TELEMETRY_DISABLED: "1"
ports:
- "3000:3000"
volumes:
approva_open_core_pgdata: