diff --git a/docker-compose.yml b/docker-compose.yml index 4299162..be9c901 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,7 @@ services: - 8080:80 volumes: - ./data/nextcloud:/var/www/html + - ./userConfig/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini - /nas/share:/nas/share:ro # 這裡掛載 NAS 共享資料夾,建議設為唯讀 restart: always depends_on: diff --git a/userConfig/php/custom.ini b/userConfig/php/custom.ini new file mode 100644 index 0000000..9b98d13 --- /dev/null +++ b/userConfig/php/custom.ini @@ -0,0 +1,6 @@ +apc.enabled=1 +apc.shm_size=256M +apc.interned_strings_buffer=16 +apc.max_file_size=10M +apc.ttl=7200 +