mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +02:00
PG Dev Max Connections (#3082)
This commit is contained in:
@@ -15,9 +15,9 @@ docker rm danswer_postgres danswer_vespa danswer_redis
|
|||||||
# Start the PostgreSQL container with optional volume
|
# Start the PostgreSQL container with optional volume
|
||||||
echo "Starting PostgreSQL container..."
|
echo "Starting PostgreSQL container..."
|
||||||
if [[ -n "$POSTGRES_VOLUME" ]]; then
|
if [[ -n "$POSTGRES_VOLUME" ]]; then
|
||||||
docker run -p 5432:5432 --name danswer_postgres -e POSTGRES_PASSWORD=password -d -v $POSTGRES_VOLUME:/var/lib/postgresql/data postgres
|
docker run -p 5432:5432 --name danswer_postgres -e POSTGRES_PASSWORD=password -d -v $POSTGRES_VOLUME:/var/lib/postgresql/data postgres -c max_connections=250
|
||||||
else
|
else
|
||||||
docker run -p 5432:5432 --name danswer_postgres -e POSTGRES_PASSWORD=password -d postgres
|
docker run -p 5432:5432 --name danswer_postgres -e POSTGRES_PASSWORD=password -d postgres -c max_connections=250
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start the Vespa container with optional volume
|
# Start the Vespa container with optional volume
|
||||||
|
Reference in New Issue
Block a user