-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1020 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 1020 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
36
37
38
39
40
41
42
43
44
45
46
services:
postgres:
image: pgvector/pgvector:pg17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: lead_qualifier
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 3s
timeout: 3s
retries: 10
migrate:
build:
context: .
target: build
command: sh -c "npx prisma migrate deploy && npx tsx prisma/seed.ts"
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/lead_qualifier
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
app:
build:
context: .
target: production
ports:
- '3000:3000'
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/lead_qualifier
env_file:
- .env
depends_on:
migrate:
condition: service_completed_successfully
volumes:
pgdata: