add memory settings to nextcloud container

This commit is contained in:
James 2022-03-17 17:57:45 +00:00
parent b12f6d2261
commit 2248e904e3
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,8 @@ DOCKER_PROXY_NETWORK=proxy
# nextcloud
NEXTCLOUD_TAG=23-apache
NEXTCLOUD_DOMAIN=nextcloud.example.com
NEXTCLOUD_MEM_RES=512m # https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#memory
NEXTCLOUD_MEM_LIMIT=4g
# postgres
POSTGRES_TAG=14

View File

@ -45,6 +45,8 @@ services:
args:
NEXTCLOUD_TAG: ${NEXTCLOUD_TAG}
restart: unless-stopped
mem_reservation: ${NEXTCLOUD_MEM_RES:-512m}
mem_limit: ${NEXTCLOUD_MEM_LIMIT:-4g}
volumes:
- ${VOLUME_PATH}/var/www/html:/var/www/html:rw
secrets: