Adding redis and php opcache config

This commit is contained in:
Siina Mashek 2024-02-08 00:55:55 +02:00
parent 15a9f86f41
commit 6a1e3229b9
2 changed files with 15 additions and 1 deletions

View File

@ -6,11 +6,12 @@ services:
image: nextcloud:latest
restart: always
ports:
- 8080:80
- 8122:80
volumes:
- ${BASE_DATA_DIR}/nextcloud/app:/var/www/html
- ${BASE_DATA_DIR}/nextcloud/data:/var/www/html/data
- ${BASE_DATA_DIR}/nextcloud/config:/var/www/html/config
- ./opcache-recommend.ini:/usr/local/etc/php/conf.d/opcache-recommend.ini
environment:
- POSTGRES_HOST=nextcloud-db
- POSTGRES_DB=${POSTGRES_DB}
@ -30,3 +31,10 @@ services:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
redis:
image: redis:alpine
container_name: redis
restart: always
volumes:
- ${BASE_DATA_DIR}/nextcloud/redis:/data

6
opcache-recommend.ini Normal file
View File

@ -0,0 +1,6 @@
opcache.enable=1
opcache.interned_strings_buffer=32
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=60