Xibo CMS (Docker) - Migration

### CMS Version: 2.3.16
### Operating System: Ubuntu 18.04.5 LTS
### Installation: Docker
### Docker Version: 19.03.12

Hi community,

I need to migrate a CMS installation from an AWS instance to a local server. I’m having some problems since I have never done a fresh install of a Xibo server and have basic knowledge about Docker.

I’ve tried a few things like:

  • Copying the whole /opt/xibo directory and trying docker-compose up -d on the new server. It ran without errors, but I couldn’t access the CMS webserver.
  • Doing a fresh install of Xibo CMS and replacing the shared directory. The new installation worked until I replaced the shared directory.

One thing I noticed is that the old installation has an Apache2 service running on the host system, and I could only do a Xibo fresh install without Apache2 installed on the host.

I know my CMS version is very old, and I plan to upgrade it, but I want to do it after the migration, which I can perform in a testing environment.

I couldn’t find any information about this in any documentation or by looking through past topics here.

I thank you in advance for any help.

Hello @FranciscoAdeFaria

Welcome to the Xibo community forum.

Could you please post your new docker compose file content ?

Hi ProServ,

Sorry for the delay.

The new docker-compose file is the following:

version: “2.1”

services:
cms-db:
image: mysql:5.7
volumes:
- “./shared/db:/var/lib/mysql:Z”
environment:
- MYSQL_DATABASE=cms
- MYSQL_USER=cms
- MYSQL_RANDOM_ROOT_PASSWORD=yes
mem_limit: 1g
env_file: config.env
restart: always
cms-xmr:
image: xibosignage/xibo-xmr:release-0.8
ports:
- “9505:9505”
restart: always
mem_limit: 256m
env_file: config.env
cms-web:
image: xibosignage/xibo-cms:release-2.3.16
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
links:
- cms-db:mysql
- cms-xmr:50001
environment:
- XMR_HOST=cms-xmr
env_file: config.env
ports:
- “80:80”
mem_limit: 1g
cms-quickchart:
image: ianw/quickchart
restart: always

The docker compose of the running instance is:
version: “2.1”

services:
cms-db:
image: mysql:5.6
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: xibosignage/xibo-xmr:release-0.8
ports:
- “9505:9505”
restart: always
mem_limit: 512m
env_file: config.env
cms-web:
image: xibosignage/xibo-cms:release-2.3.16
volumes:

    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
    links:
        - cms-db:mysql
        - cms-xmr:50001
    environment:
        - XMR_HOST=cms-xmr
    env_file: config.env
    ports:
        - "127.0.0.1:8080:80"
    mem_limit: 2g
cms-quickchart:
  image: ianw/quickchart
  restart: always

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.