-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
48 lines (44 loc) · 1.1 KB
/
Copy pathcompose.yml
File metadata and controls
48 lines (44 loc) · 1.1 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
services:
pgvector:
image: docker.io/pgvector/pgvector:pg18-trixie
networks:
- voiceprint-app-network
volumes:
- pgvector-data:/var/lib/postgresql/18/docker
- ./backend/scripts/enable-vector.sh:/docker-entrypoint-initdb.d/99-enable-vector.sh
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- ".env"
backend:
build:
context: ./backend
networks:
- voiceprint-app-network
ports:
- "${VOICEPRINT_APP_BACKEND_PORT:-8000}:8000"
depends_on:
pgvector:
condition: service_healthy
env_file:
- ".env"
frontend:
build:
context: ./frontend
networks:
- voiceprint-app-network
ports:
- "${VOICEPRINT_APP_FRONTEND_PORT:-3000}:80"
env_file:
- ".env"
volumes:
pgvector-data:
networks:
voiceprint-app-network:
name: voiceprint-app-network
driver: bridge