fix

parent 703442fe
......@@ -3,7 +3,6 @@ version: "3.8"
services:
postgres:
image: pgvector/pgvector:pg16
container_name: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
......@@ -14,7 +13,14 @@ services:
- "5432:5432"
networks:
- app-network
restart: unless-stopped
deploy:
restart_policy:
condition: unless-stopped
resources:
limits:
memory: 512M
reservations:
memory: 256M
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
......@@ -24,7 +30,6 @@ services:
minio:
image: minio/minio:latest
container_name: minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
......@@ -36,7 +41,14 @@ services:
- "9001:9001"
networks:
- app-network
restart: unless-stopped
deploy:
restart_policy:
condition: unless-stopped
resources:
limits:
memory: 512M
reservations:
memory: 256M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
......@@ -46,7 +58,6 @@ services:
data-handler:
image: salmamohammedhamedmustafa/data-handler:latest
container_name: data-handler
environment:
MINIO_ENDPOINT: "http://minio:9000"
MINIO_ACCESS_KEY: "${MINIO_ROOT_USER}"
......@@ -60,11 +71,12 @@ services:
POSTGRES_DB: "${POSTGRES_DB}"
networks:
- app-network
restart: "no"
depends_on:
- postgres
- minio
deploy:
restart_policy:
condition: none
resources:
limits:
memory: 1G
......@@ -73,7 +85,6 @@ services:
voice-agent:
image: salmamohammedhamedmustafa/voice-agent:latest
container_name: voice-agent
ports:
- "8010:8000"
environment:
......@@ -90,33 +101,30 @@ services:
DATA_HANDLER_URL: "http://data-handler:8000"
networks:
- app-network
restart: unless-stopped
depends_on:
- postgres
- minio
- data-handler
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/ || exit 1"]
interval: 30s
timeout: 15s
retries: 5
start_period: 60s
deploy:
restart_policy:
condition: unless-stopped
resources:
limits:
memory: 1G
reservations:
memory: 512M
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/ || exit 1"]
interval: 30s
timeout: 15s
retries: 5
start_period: 60s
volumes:
pgdata:
driver: local
miniodata:
driver: local
networks:
app-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
\ No newline at end of file
driver: overlay
attachable: true
\ 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