fix

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