--memory-limit=0 Total memory limit in MiB. Set to 0 to use the default values which are 100% of the physical memory if the swap is enabled and 90% of the physical memory otherwise.
# copy right by 2023 sinlovgmpp@gmail.com# license under MIT# more info see https://docs.docker.com/compose/compose-file/version:'3.8'# https://docs.docker.com/compose/compose-file/compose-versioning/services:memgraph-platform:# https://hub.docker.com/r/memgraph/memgraph-platformcontainer_name:"memgraph-platform"image:memgraph/memgraph-platform:2.10.0-memgraph2.10.0-lab2.8.0-mage1.9# https://hub.docker.com/r/memgraph/memgraph-platform/tagsports:- 13000:3000# connection to the Memgraph Lab application when running Memgraph Platformvolumes:# bind mounts to transfer durability files such as snapshot or wal files inside the container to restore data, or CSV files- './data/memgraph-platform/data:/usr/lib/memgraph/data'# directory containing log files- './data/memgraph-platform/log/memgraph:/var/log/memgraph'# directory containing data, enables data persistency- './data/memgraph-platform/lib/memgraph:/var/lib/memgraph'# directory containing the configuration file# The configuration file can usually be found at /etc/memgraph/_data/memgraph.conf# - './data/memgraph-platform/etc/memgraph:/etc/memgraph'environment:# set the log level to WARNING Allowed values: TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL# memory limit in MiBMEMGRAPH:--memory-limit=50 --log-level=TRACErestart:always# always on-failure:3 or unless-stopped default "no"logging:driver:"json-file"options:max-size:"2m"memgraph-mage:# https://hub.docker.com/r/memgraph/memgraph-magecontainer_name:'memgraph-mage'image:memgraph/memgraph-mage:1.9-memgraph-2.10.0# https://hub.docker.com/r/memgraph/memgraph-mage/tagsuser:rootenv_file:.envports:- 17444:7444# connection to fetch log files from Memgraph Lab, version 2.+ and new- 17687:7687# connection to the database instance, the Bolt protocol uses this port by defaultvolumes:# bind mounts to transfer durability files such as snapshot or wal files inside the container to restore data, or CSV files- './data/memgraph-mage/data:/usr/lib/memgraph/data'# directory containing log files- './data/memgraph-mage/log/memgraph:/var/log/memgraph'# directory containing data, enables data persistency- './data/memgraph-mage/lib/memgraph:/var/lib/memgraph'# directory containing the configuration file# The configuration file can usually be found at /etc/memgraph/_data/memgraph.conf# - './data/memgraph-mage/etc/memgraph:/etc/memgraph'environment:# set the log level to WARNING Allowed values: TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL# memory limit in MiBMEMGRAPH:--memory-limit=50 --log-level=WARNINGMEMGRAPH_USER:${ENV_MEMGRAPH_MAGE_USER}MEMGRAPH_PASSWORD:${ENV_MEMGRAPH_MAGE_PWD}restart:on-failure:3 # always on-failure:3 or unless-stopped default "no"logging:driver:"json-file"options:max-size:"2m"