Add CPU limit parameter to docker-compose.yml

This commit is contained in:
Kris Lamoureux 2025-04-05 14:09:23 -04:00
parent 15f88de2d0
commit 245c91a22f
Signed by: kris
GPG Key ID: 105B748C1362EB96

View File

@ -12,6 +12,7 @@ services:
image: "${IMAGE:-nextcloud}:${VERSION:-latest}"
container_name: "${NAME:-nextcloud}"
mem_limit: ${MEM_LIMIT:-2g}
cpus: ${CPUS:-1}
environment:
PHP_MEMORY_LIMIT: "${PHP_MEMORY_LIMIT:-1024M}"
labels: