mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-20 13:05:49 +02:00
Log size limit to prevent more disk usage (#941)
This commit is contained in:
@@ -73,6 +73,11 @@ services:
|
|||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_nltk:/root/nltk_data/
|
- model_cache_nltk:/root/nltk_data/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
background:
|
background:
|
||||||
image: danswer/danswer-backend:latest
|
image: danswer/danswer-backend:latest
|
||||||
build:
|
build:
|
||||||
@@ -147,6 +152,11 @@ services:
|
|||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_nltk:/root/nltk_data/
|
- model_cache_nltk:/root/nltk_data/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
web_server:
|
web_server:
|
||||||
image: danswer/danswer-web-server:latest
|
image: danswer/danswer-web-server:latest
|
||||||
build:
|
build:
|
||||||
@@ -179,6 +189,11 @@ services:
|
|||||||
- "8081:8081"
|
- "8081:8081"
|
||||||
volumes:
|
volumes:
|
||||||
- vespa_volume:/opt/vespa/var
|
- vespa_volume:/opt/vespa/var
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.23.4-alpine
|
image: nginx:1.23.4-alpine
|
||||||
restart: always
|
restart: always
|
||||||
@@ -194,6 +209,11 @@ services:
|
|||||||
- "3000:80" # allow for localhost:3000 usage, since that is the norm
|
- "3000:80" # allow for localhost:3000 usage, since that is the norm
|
||||||
volumes:
|
volumes:
|
||||||
- ../data/nginx:/etc/nginx/conf.d
|
- ../data/nginx:/etc/nginx/conf.d
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
# sleep a little bit to allow the web_server / api_server to start up.
|
# sleep a little bit to allow the web_server / api_server to start up.
|
||||||
# Without this we've seen issues where nginx shows no error logs but
|
# Without this we've seen issues where nginx shows no error logs but
|
||||||
# does not recieve any traffic
|
# does not recieve any traffic
|
||||||
@@ -222,6 +242,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
volumes:
|
volumes:
|
||||||
local_dynamic_storage:
|
local_dynamic_storage:
|
||||||
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
|
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
|
||||||
|
@@ -25,6 +25,11 @@ services:
|
|||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_nltk:/root/nltk_data/
|
- model_cache_nltk:/root/nltk_data/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
background:
|
background:
|
||||||
image: danswer/danswer-backend:latest
|
image: danswer/danswer-backend:latest
|
||||||
build:
|
build:
|
||||||
@@ -47,6 +52,11 @@ services:
|
|||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_nltk:/root/nltk_data/
|
- model_cache_nltk:/root/nltk_data/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
web_server:
|
web_server:
|
||||||
image: danswer/danswer-web-server:latest
|
image: danswer/danswer-web-server:latest
|
||||||
build:
|
build:
|
||||||
@@ -61,6 +71,11 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- INTERNAL_URL=http://api_server:8080
|
- INTERNAL_URL=http://api_server:8080
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
relational_db:
|
relational_db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
restart: always
|
restart: always
|
||||||
@@ -69,6 +84,11 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- db_volume:/var/lib/postgresql/data
|
- db_volume:/var/lib/postgresql/data
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
# This container name cannot have an underscore in it due to Vespa expectations of the URL
|
# This container name cannot have an underscore in it due to Vespa expectations of the URL
|
||||||
index:
|
index:
|
||||||
image: vespaengine/vespa:8.277.17
|
image: vespaengine/vespa:8.277.17
|
||||||
@@ -78,6 +98,11 @@ services:
|
|||||||
- "8081:8081"
|
- "8081:8081"
|
||||||
volumes:
|
volumes:
|
||||||
- vespa_volume:/opt/vespa/var
|
- vespa_volume:/opt/vespa/var
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.23.4-alpine
|
image: nginx:1.23.4-alpine
|
||||||
restart: always
|
restart: always
|
||||||
@@ -95,6 +120,11 @@ services:
|
|||||||
# sleep a little bit to allow the web_server / api_server to start up.
|
# sleep a little bit to allow the web_server / api_server to start up.
|
||||||
# Without this we've seen issues where nginx shows no error logs but
|
# Without this we've seen issues where nginx shows no error logs but
|
||||||
# does not recieve any traffic
|
# does not recieve any traffic
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
command: >
|
command: >
|
||||||
/bin/sh -c "sleep 10 &&
|
/bin/sh -c "sleep 10 &&
|
||||||
envsubst '$$\{DOMAIN\} $$\{SSL_CERT_FILE_NAME\} $$\{SSL_CERT_KEY_FILE_NAME\}' < /etc/nginx/conf.d/app.conf.template.no-letsencrypt > /etc/nginx/conf.d/app.conf &&
|
envsubst '$$\{DOMAIN\} $$\{SSL_CERT_FILE_NAME\} $$\{SSL_CERT_KEY_FILE_NAME\}' < /etc/nginx/conf.d/app.conf.template.no-letsencrypt > /etc/nginx/conf.d/app.conf &&
|
||||||
@@ -120,6 +150,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
volumes:
|
volumes:
|
||||||
local_dynamic_storage:
|
local_dynamic_storage:
|
||||||
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
|
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
|
||||||
|
@@ -25,6 +25,11 @@ services:
|
|||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_nltk:/root/nltk_data/
|
- model_cache_nltk:/root/nltk_data/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
background:
|
background:
|
||||||
image: danswer/danswer-backend:latest
|
image: danswer/danswer-backend:latest
|
||||||
build:
|
build:
|
||||||
@@ -47,6 +52,11 @@ services:
|
|||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_nltk:/root/nltk_data/
|
- model_cache_nltk:/root/nltk_data/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
web_server:
|
web_server:
|
||||||
image: danswer/danswer-web-server:latest
|
image: danswer/danswer-web-server:latest
|
||||||
build:
|
build:
|
||||||
@@ -61,6 +71,11 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- INTERNAL_URL=http://api_server:8080
|
- INTERNAL_URL=http://api_server:8080
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
relational_db:
|
relational_db:
|
||||||
image: postgres:15.2-alpine
|
image: postgres:15.2-alpine
|
||||||
restart: always
|
restart: always
|
||||||
@@ -69,6 +84,11 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
- db_volume:/var/lib/postgresql/data
|
- db_volume:/var/lib/postgresql/data
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
# This container name cannot have an underscore in it due to Vespa expectations of the URL
|
# This container name cannot have an underscore in it due to Vespa expectations of the URL
|
||||||
index:
|
index:
|
||||||
image: vespaengine/vespa:8.277.17
|
image: vespaengine/vespa:8.277.17
|
||||||
@@ -78,6 +98,11 @@ services:
|
|||||||
- "8081:8081"
|
- "8081:8081"
|
||||||
volumes:
|
volumes:
|
||||||
- vespa_volume:/opt/vespa/var
|
- vespa_volume:/opt/vespa/var
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.23.4-alpine
|
image: nginx:1.23.4-alpine
|
||||||
restart: always
|
restart: always
|
||||||
@@ -96,6 +121,11 @@ services:
|
|||||||
# sleep a little bit to allow the web_server / api_server to start up.
|
# sleep a little bit to allow the web_server / api_server to start up.
|
||||||
# Without this we've seen issues where nginx shows no error logs but
|
# Without this we've seen issues where nginx shows no error logs but
|
||||||
# does not recieve any traffic
|
# does not recieve any traffic
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
command: >
|
command: >
|
||||||
/bin/sh -c "sleep 10 &&
|
/bin/sh -c "sleep 10 &&
|
||||||
envsubst '$$\{DOMAIN\}' < /etc/nginx/conf.d/app.conf.template > /etc/nginx/conf.d/app.conf &&
|
envsubst '$$\{DOMAIN\}' < /etc/nginx/conf.d/app.conf.template > /etc/nginx/conf.d/app.conf &&
|
||||||
@@ -109,6 +139,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../data/certbot/conf:/etc/letsencrypt
|
- ../data/certbot/conf:/etc/letsencrypt
|
||||||
- ../data/certbot/www:/var/www/certbot
|
- ../data/certbot/www:/var/www/certbot
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||||
# Run with --profile model-server to bring up the danswer-model-server container
|
# Run with --profile model-server to bring up the danswer-model-server container
|
||||||
model_server:
|
model_server:
|
||||||
@@ -129,6 +164,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- model_cache_torch:/root/.cache/torch/
|
- model_cache_torch:/root/.cache/torch/
|
||||||
- model_cache_huggingface:/root/.cache/huggingface/
|
- model_cache_huggingface:/root/.cache/huggingface/
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "6"
|
||||||
volumes:
|
volumes:
|
||||||
local_dynamic_storage:
|
local_dynamic_storage:
|
||||||
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
|
file_connector_tmp_storage: # used to store files uploaded by the user temporarily while we are indexing them
|
||||||
|
Reference in New Issue
Block a user