Nextcloud - Collabora Online - Built-in CODE Server

Hi everyone. I would need help installing Collabora Online - Built-in CODE Server in Nextcloud container. The docker-compose I used is:

version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: yobasystems/alpine-mariadb:latest
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=MY_ROOT_PASSWORD
      - MYSQL_PASSWORD=MY_PASSWORD
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud
    ports:
      - 8081:80
    links:
      - db
    volumes:
      - /srv/dev-disk-by-label-DATA/Config/nextcloud:/var/www/html
    restart: always

But when I go to configure it collaborates it gives me this error:

If the installation from the application store fails, you can do it manually using this command:php -d memory_limit=512M occ app:install richdocumentscode

and i don’t know how to change the memory limit of php.
Please help me …