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