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

@@ -32,6 +32,7 @@ services:
args:
- POSTGRES_TAG
restart: unless-stopped
shm_size: 1GB
tty: true
volumes:
- pg-data:${PGDATA}
@@ -82,12 +83,26 @@ services:
networks:
- internal
keydb:
image: eqalpha/keydb:latest
platform: linux/amd64
shm_size: 1GB
restart: unless-stopped
networks:
- internal
# command: keydb-server /etc/keydb/keydb.conf
volumes:
#- ./keydb.conf:/etc/keydb/keydb.conf:ro
- cache-db-data:/var/lib/keydb
volumes:
data-dir:
pg-data:
certs:
vhost:
html:
cache-db-data:
networks:
internal: