MySQL server has gone away

I seem to be getting a lot of errors. I’m going through the Nextcloud setup wizard and I keeping get this erro after I’ve filled everything out and clicked submit. For reference, I’m setting up an admin account and configuring the database.

Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away

This is my mariadb entry in my docker-compose.yml:

 nextcloud-db:
    image: linuxserver/mariadb
    container_name: nextcloud-db
    environment:
      - PUID=1001
      - PGID=1001
      - MYSQL_ROOT_PASSWORD=super_secret_password
      - MYSQL_PASSWORD=nextcloud
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - TZ=America/Seattle
    volumes:
      - /opt/docker/config/nextcloud-db:/config
    ports:
      - 3306:3306
    restart: unless-stopped
  ddclient:
    image: linuxserver/ddclient
    container_name: ddclient
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=America/Seattle
    volumes:
      - /opt/docker/config/ddclient:/config
    restart: unless-stopped

This is my database config in the wizard:
Screenshot_2020-02-10_Nextcloud