mirror of
https://github.com/Thumbscrew/nextcloud-docker-compose.git
synced 2025-01-18 17:45:46 +00:00
add memory settings to nextcloud container
This commit is contained in:
parent
b12f6d2261
commit
2248e904e3
@ -5,6 +5,8 @@ DOCKER_PROXY_NETWORK=proxy
|
|||||||
# nextcloud
|
# nextcloud
|
||||||
NEXTCLOUD_TAG=23-apache
|
NEXTCLOUD_TAG=23-apache
|
||||||
NEXTCLOUD_DOMAIN=nextcloud.example.com
|
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
|
||||||
POSTGRES_TAG=14
|
POSTGRES_TAG=14
|
||||||
|
@ -45,6 +45,8 @@ services:
|
|||||||
args:
|
args:
|
||||||
NEXTCLOUD_TAG: ${NEXTCLOUD_TAG}
|
NEXTCLOUD_TAG: ${NEXTCLOUD_TAG}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
mem_reservation: ${NEXTCLOUD_MEM_RES:-512m}
|
||||||
|
mem_limit: ${NEXTCLOUD_MEM_LIMIT:-4g}
|
||||||
volumes:
|
volumes:
|
||||||
- ${VOLUME_PATH}/var/www/html:/var/www/html:rw
|
- ${VOLUME_PATH}/var/www/html:/var/www/html:rw
|
||||||
secrets:
|
secrets:
|
||||||
|
Loading…
Reference in New Issue
Block a user