Commit 9adcfccb authored by Salma Mohammed Hamed's avatar Salma Mohammed Hamed

Update docker-compose.yml

parent d91f4a88
version: "3.8"
services:
postgres:
image: pgvector/pgvector:pg16
environment:
......@@ -11,23 +12,7 @@ services:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
resources:
limits:
memory: 512M
reservations:
memory: 256M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
minio:
image: minio/minio:latest
......@@ -40,23 +25,7 @@ services:
ports:
- "9000:9000"
- "9001:9001"
deploy:
restart_policy:
condition: any
delay: 5s
max_attempts: 3
window: 120s
resources:
limits:
memory: 512M
reservations:
memory: 256M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 5
start_period: 60s
data-handler:
image: salmamohammedhamedmustafa/data-handler:latest
......@@ -67,21 +36,13 @@ services:
OPENAI_API_KEY: "${OPENAI_API_KEY}"
MINIO_BUCKET: "${MINIO_BUCKET}"
POSTGRES_HOST: "postgres"
POSTGRES_PORT: "5432"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
depends_on:
- postgres
- minio
deploy:
restart_policy:
condition: none
resources:
limits:
memory: 1G
reservations:
memory: 512M
- postgres
voice-agent:
image: salmamohammedhamedmustafa/voice-agent:latest
......@@ -94,26 +55,10 @@ services:
OPENAI_API_KEY: "${OPENAI_API_KEY}"
MINIO_BUCKET: "${MINIO_BUCKET}"
POSTGRES_HOST: "postgres"
POSTGRES_PORT: "5432"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
DATA_HANDLER_URL: "http://data-handler:8000"
depends_on:
- postgres
- minio
deploy:
restart_policy:
condition: any
delay: 10s
max_attempts: 5
window: 300s
resources:
limits:
memory: 1G
reservations:
memory: 512M
volumes:
pgdata:
miniodata:
\ No newline at end of file
miniodata:
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