jack 3 ay önce
ebeveyn
işleme
31aea7be83
1 değiştirilmiş dosya ile 6 ekleme ve 8 silme
  1. 6 8
      docker-compose.yaml

+ 6 - 8
docker-compose.yaml

@@ -1,7 +1,6 @@
 networks:
   r2r-network:
-    external: true
-          #driver: bridge
+    external: true #driver: bridge
     attachable: true
     labels:
       - "com.docker.compose.recreate=always"
@@ -13,7 +12,7 @@ volumes:
 services:
   postgres:
     image: pgvector/pgvector:pg17
-    profiles: [postgres]
+    profiles: [ postgres ]
     environment:
       - POSTGRES_USER=${R2R_POSTGRES_USER:-${POSTGRES_USER:-postgres}} # Eventually get rid of POSTGRES_USER, but for now keep it for backwards compatibility
       - POSTGRES_PASSWORD=${R2R_POSTGRES_PASSWORD:-${POSTGRES_PASSWORD:-cocorobo-123}} # Eventually get rid of POSTGRES_PASSWORD, but for now keep it for backwards compatibility
@@ -28,14 +27,13 @@ services:
     ports:
       - "${R2R_POSTGRES_PORT:-5432}:${R2R_POSTGRES_PORT:-5432}"
     healthcheck:
-      test: ["CMD-SHELL", "pg_isready -U ${R2R_POSTGRES_USER:-postgres}"]
+      test: [ "CMD-SHELL", "pg_isready -U ${R2R_POSTGRES_USER:-postgres}" ]
       interval: 10s
       timeout: 5s
       retries: 5
     restart: on-failure
     command: >
-      postgres
-      -c max_connections=${R2R_POSTGRES_MAX_CONNECTIONS:-1024}
+      postgres -c max_connections=${R2R_POSTGRES_MAX_CONNECTIONS:-1024}
 
   r2r:
     image: ${R2R_IMAGE:-ragtoriches/prod:latest}
@@ -63,7 +61,7 @@ services:
       - R2R_POSTGRES_PASSWORD=${R2R_POSTGRES_PASSWORD:-cocorobo-123}
       - R2R_POSTGRES_HOST=${R2R_POSTGRES_HOST:-postgres}
       - R2R_POSTGRES_PORT=${R2R_POSTGRES_PORT:-5432}
-      - R2R_POSTGRES_DBNAME=${R2R_POSTGRES_DBNAME:-cocorobo-file}
+      - R2R_POSTGRES_DBNAME=${R2R_POSTGRES_DBNAME:-cocorobo-file1}
       - R2R_POSTGRES_MAX_CONNECTIONS=${R2R_POSTGRES_MAX_CONNECTIONS:-102400}
       - R2R_POSTGRES_PROJECT_NAME=${R2R_POSTGRES_PROJECT_NAME:-cocorobo-knowledge}
       - R2R_POSTGRES_STATEMENT_CACHE_SIZE=${R2R_POSTGRES_STATEMENT_CACHE_SIZE:-100}
@@ -105,7 +103,7 @@ services:
     networks:
       - r2r-network
     healthcheck:
-      test: ["CMD", "curl", "-f", "http://localhost:${R2R_PORT:-7272}/v3/health"]
+      test: [ "CMD", "curl", "-f", "http://localhost:${R2R_PORT:-7272}/v3/health" ]
       interval: 6s
       timeout: 5s
       retries: 5