Adding redis and php opcache config
This commit is contained in:
parent
15a9f86f41
commit
6a1e3229b9
2 changed files with 15 additions and 1 deletions
|
@ -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
6
opcache-recommend.ini
Normal 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
|
Loading…
Reference in a new issue