Increasing the use of container ram in docker-compose

Please share your default.conf. Sidenote: people usualy map an nginx.conf from the host to /etc/nginx/nginx.conf inside the container.