-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 918 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (36 loc) · 918 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
services:
# Database service PostgresSQL image
database:
# image: postgres:latest
image: pgvector/pgvector:pg18-trixie
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: catalog
ports:
- "5432:5432"
volumes:
- database:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# Backend service
backend:
build: .
image: aiva-backend:latest
ports:
- "3000:3000"
depends_on:
database:
condition: service_healthy
env_file:
- ./.env
environment:
# Override DATABASE_URL for Docker (use service name instead of localhost)
DATABASE_URL: "postgresql://postgres:password@database:5432/catalog?schema=public"
restart: unless-stopped
volumes:
database:
name: aiva_database_data