Where does docker container set listener port?

I recently installed the official docker owncloud/server container. The docker-compose.yml file configures it to use port 8080.

Why is it using this port? I’m considering installing reverase proxy traefik which also wants port 8080 for it’s admin interface.

/etc/apache2/ports.conf looks like this: Listen ${APACHE_LISTEN}

I cannot find where the variable APACHE_LISTEN is set. I have looked in apache2.conf, config/config.php and .htaccess but cannot find it. I would like to use another port, e.g. 8081 so it doesn’t conflict with the traefik admin port.

Any suggestions welcome, thank you for your attention.

Server configuration

Operating system: debian buster

Web server: apache2

Database: mariadb

PHP version:

ownCloud version: (see ownCloud admin page) 10.2.1

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: dockerhub

The content of config/config.php:

<?php $CONFIG = array ( 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/owncloud/apps', 'url' => '/apps', 'writable' => false, ), 1 => array ( 'path' => '/var/www/owncloud/custom', 'url' => '/custom', 'writable' => true, ), ), 'trusted_domains' => array ( 0 => 'localhost', ), 'datadirectory' => '/mnt/data/files', 'dbtype' => 'mysql', 'dbhost' => 'db:3306', 'dbname' => 'owncloud', 'dbuser' => '***', 'dbpassword' => '***', 'dbtableprefix' => 'oc_', 'log_type' => 'owncloud', 'supportedDatabases' => array ( 0 => 'sqlite', 1 => 'mysql', 2 => 'pgsql', ), 'upgrade.disable-web' => true, 'default_language' => 'en', 'overwrite.cli.url' => 'http://localhost/', 'htaccess.RewriteBase' => '/', 'logfile' => '/mnt/data/files/owncloud.log', 'loglevel' => 2, 'memcache.local' => '\\OC\\Memcache\\APCu', 'mysql.utf8mb4' => true, 'filelocking.enabled' => true, 'memcache.distributed' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => 'redis', 'port' => '6379', ), 'passwordsalt' => '***', 'secret' => '***', 'version' => '', 'logtimezone' => 'UTC', 'installed' => true, 'instanceid' => 'ocxvauq03fjg', ); If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your ownCloud installation folder *ATTENTION:* Do not post your config.php file in public as is. Please use one of the above methods whenever possible. Both, the generated reports from the web-ui and from occ config:list consistently remove sensitive data. You still may want to review the report before sending. If done manually then it is critical for your own privacy to dilligently remove *all* host names, passwords, usernames, salts and other credentials before posting. You should assume that attackers find such information and will use them against your systems. ``` **List of activated apps:** ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your ownCloud installation folder. ``` **Are you using external storage, if yes which one:** local/smb/sftp/... **Are you using encryption:** yes/no **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... #### LDAP configuration (delete this part if not used) ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your ownCloud installation folder Without access to your command line download the data/owncloud.db to your local computer or access your SQL server remotely and run the select query: SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap'; Eventually replace sensitive data as the name/IP-address of your LDAP server or groups. ``` ### Client configuration **Browser:** **Operating system:** ### Logs #### Web server error log ``` Insert your webserver log here ``` #### ownCloud log (data/owncloud.log) ``` Insert your ownCloud log here ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```


maybe the documentation of the docker image available at https://doc.owncloud.com/server/10.2/admin_manual/installation/docker/ could help you to answer your question on how to change the port?

This post was flagged by the community and is temporarily hidden.