A docker port problem

Hi.
Run out of ideas.
Upgraded our “very old” Xibo docker instance with the latest from the xibo site.

Carelessly(?) Ran the upgrade using the default how-to before realising my predecessor had changed the port on the web server to 8080.

After reading the doc properly, copied template file and edited and tried to get it working.
Sadly … a bust.

This site can’t be reached e4182s01sv023:8080 refused to connect. And I do not even know where to look for the logs…

Scrapings below.

  1. The shutdown and restart.
  2. A docker-compose ps
  3. The cms_custom-ports.yml file

Notice the reference to port 80 ?
I do not have the faintest idea of what the 8080:8080 that I change to, is supposed to work. As a docker n00b would dearly like to. None of the googling I did seemed to help me.

Yours in hope…
regards
Peter

root@e4182s01sv023:/opt/xibo# docker-compose down
Stopping xibo_cms-memcached_1  ... done
Stopping xibo_cms-web_1        ... done
Stopping xibo_cms-quickchart_1 ... done
Stopping xibo_cms-xmr_1        ... done
Stopping xibo_cms-db_1         ... done
Removing xibo_cms-memcached_1  ... done
Removing xibo_cms-web_1        ... done
Removing xibo_cms-quickchart_1 ... done
Removing xibo_cms-xmr_1        ... done
Removing xibo_cms-db_1         ... done
Removing network xibo_default
root@e4182s01sv023:/opt/xibo# docker-compose -f cms_custom-ports.yml up -d
Creating network "xibo_default" with the default driver
Creating xibo_cms-quickchart_1 ... done
Creating xibo_cms-db_1         ... done
Creating xibo_cms-xmr_1        ... done
Creating xibo_cms-memcached_1  ... done
Creating xibo_cms-web_1        ... done
root@e4182s01sv023:/opt/xibo# docker-compose ps
        Name                       Command               State                           Ports
----------------------------------------------------------------------------------------------------------------------
xibo_cms-db_1           docker-entrypoint.sh mysqld      Up      3306/tcp, 33060/tcp
xibo_cms-memcached_1    docker-entrypoint.sh memca ...   Up      11211/tcp
xibo_cms-quickchart_1   node --max-http-header-siz ...   Up      3400/tcp
xibo_cms-web_1          /entrypoint.sh                   Up      80/tcp, 0.0.0.0:8080->8080/tcp,:::8080->8080/tcp
xibo_cms-xmr_1          docker-php-entrypoint /ent ...   Up      50001/tcp, 0.0.0.0:65500->9505/tcp,:::65500->9505/tcp
root@e4182s01sv023:/opt/xibo#
version: "2.1"

services:
    cms-db:
        image: mysql:8.0
        volumes:
            - "./shared/db:/var/lib/mysql:Z"
        restart: always
        environment:
            - MYSQL_DATABASE=cms
            - MYSQL_USER=cms
            - MYSQL_RANDOM_ROOT_PASSWORD=yes
        mem_limit: 1g
        env_file: config.env
    cms-xmr:
        image: ghcr.io/xibosignage/xibo-xmr:0.11
        ports:
            - "65500:9505"
        restart: always
        mem_limit: 256m
        env_file: config.env
    cms-web:
        image: ghcr.io/xibosignage/xibo-cms:release-4.0.8
        volumes:
            - "./shared/cms/custom:/var/www/cms/custom:Z"
            - "./shared/backup:/var/www/backup:Z"
            - "./shared/cms/web/theme/custom:/var/www/cms/web/theme/custom:Z"
            - "./shared/cms/library:/var/www/cms/library:Z"
            - "./shared/cms/web/userscripts:/var/www/cms/web/userscripts:Z"
            - "./shared/cms/ca-certs:/var/www/cms/ca-certs:Z"
        restart: always
        environment:
            - MYSQL_HOST=cms-db
            - XMR_HOST=cms-xmr
            - CMS_USE_MEMCACHED=true
            - MEMCACHED_HOST=cms-memcached
        env_file: config.env
        ports:
            - "8080:8080"
        mem_limit: 1g
    cms-memcached:
        image: memcached:alpine
        command: memcached -m 15
        restart: always
        mem_limit: 100M
    cms-quickchart:
      image: ianw/quickchart
      restart: always
~

This means “map 8080 on the outside to 8080 on the inside”, so you actually want 8080:80 - traffic hitting 8080 on your host will be routes to 80 inside the container (which is where Xibo’s web server is listening).

Bingo… fixed… Many thanks…

You should see the config ports examples with a google… and none of them actually told me what the format was !!

Tx again
Peter

1 Like