Commit a339a02d authored by Salma Mohammed Hamed's avatar Salma Mohammed Hamed

Update docker-compose.yml

parent 9adcfccb
version: "3.8"
services:
postgres:
image: pgvector/pgvector:pg16
environment:
......@@ -12,6 +10,11 @@ services:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
minio:
......@@ -25,6 +28,11 @@ services:
ports:
- "9000:9000"
- "9001:9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
data-handler:
......@@ -42,12 +50,17 @@ services:
depends_on:
- minio
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
retries: 3
timeout: 5s
voice-agent:
image: salmamohammedhamedmustafa/voice-agent:latest
ports:
- "8010:8000"
- "8000:8000"
environment:
MINIO_ENDPOINT: "http://minio:9000"
MINIO_ACCESS_KEY: "${MINIO_ROOT_USER}"
......@@ -58,7 +71,13 @@ services:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
volumes:
- ./uploads:/app/uploads
depends_on:
- minio
- data-handler
volumes:
pgdata:
miniodata:
miniodata:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment