SMB Deployment Woes

Hello Everyone,

I am having some issues with creating a custom image using the SMB Apache docker file. Essentially, all I want to do is run Nextcloud with the SMB package pre-installed.

Here is the docker file that I loaded into Portainer:
* List item

FROM nextcloud:apache

RUN apt-get update && apt-get install -y procps smbclient && rm -rf /var/lib/apt/lists/*

Here is my docker compose file:

version: '2'

services:
  db:
    image: mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - /volume1/docker/storage/nextcloud/db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=XXXX
      - MYSQL_PASSWORD=XXXX
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
  app:
    image: nextcloud-smb(my custom image):latest
    restart: always
    ports:
      - 8081:80
    links:
      - db
    volumes:
      - /volume1/docker/storage/nextcloud/data:/var/www/html
    environment:
      - MYSQL_PASSWORD=XXXX
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db

When I run my “nextcloud-smb” container I receive the following error message:

=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.27.0.3. Set the 'ServerName' directive globally to suppress this message

(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down

AH00015: Unable to open logs

The device that is hosting my docker instance is my Synology DS1621+ device so I am using Portainer off of that. For the record, Nextcloud works just fine using the standard base mage (nextcloud:latest).

I also tried a different approach, where I added an entry point to my docker compose file as recommended by one user from Reddit:
* List item

entrypoint: ["/bin/bash", "-c" , "apt update && apt install smbclient libsmbclient-dev -y && pecl install smbclient && docker-php-ext-enable smbclient && /entrypoint.sh apache2-foreground"]

But that does not work as well, as I receive a message denied error.

Thanks for the help everyone.