feat(.env.example): add configuration options for Redis caching in the .env.example file

 feat(docker-compose.yml): add keydb service for Redis caching with 1GB shared memory size
 feat(odoo.example.conf): add configuration options for Redis caching in the odoo.example.conf file
The changes were made to add support for Redis caching in the application. The .env.example file now includes configuration options for Redis caching, such as Redis host, port, password, URL, prefix, expiration time, and expiration time for anonymous sessions. The docker-compose.yml file now includes a keydb service with 1GB shared memory size for Redis caching. The odoo.example.conf file now includes configuration options for Redis caching, such as enabling Redis caching, Redis host, port, password, URL, prefix, expiration time, and expiration time for anonymous sessions. These changes allow the application to utilize Redis for caching, improving performance and scalability.
This commit is contained in:
Fabio Tielen // Code Agency
2023-09-04 23:54:39 +02:00
parent 7b3b84fbdb
commit dddafd862f
3 changed files with 48 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
APP_ENV=local
INIT=
UPDATE=
LOAD=base,web
LOAD=base,web,session_redis
WORKERS=2
DEV_MODE=reload,qweb
DOMAIN=erp.odoocker.test
@@ -235,3 +235,15 @@ CORS_ALLOWED_DOMAIN=${CORS_ALLOWED_DOMAIN}
# ACME Companion #
#----------------------#
DEFAULT_EMAIL=${SUPPORT_EMAIL}
#----------------------#
# REDIS Caching #
#----------------------#
ODOO_SESSION_REDIS = ${ODOO_SESSION_REDIS}
ODOO_SESSION_REDIS_HOST = ${ODOO_SESSION_REDIS_HOST}
ODOO_SESSION_REDIS_PORT = ${ODOO_SESSION_REDIS_PORT}
ODOO_SESSION_REDIS_PASSWORD = ${ODOO_SESSION_REDIS_PASSWORD}
ODOO_SESSION_REDIS_URL = ${ODOO_SESSION_REDIS_URL}
ODOO_SESSION_REDIS_PREFIX = ${ODOO_SESSION_REDIS_PREFIX}
ODOO_SESSION_REDIS_EXPIRATION = ${ODOO_SESSION_REDIS_EXPIRATION}
ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS = ${ODOO_SESSION_REDIS_EXPIRATION_ANONYMOUS}