Rogue mysql container

When I reboot my host, docker ups a new instance of mysql, which overlaps the good one and as such shows and empty db:

[root@digital18 dockers]# docker ps
CONTAINER ID        IMAGE                                COMMAND                  CREATED             STATUS              PORTS                               NAMES
a5d5cdde18d2        xibosignage/xibo-cms:release-1.8.6   "/entrypoint.sh"         6 days ago          Up About a minute   0.0.0.0:80->80/tcp                  xibodocker_cms-web_1
7230b33ac43f        mysql:5.6                            "docker-entrypoint.sh"   6 days ago          Up About a minute   3306/tcp                            xibodocker_cms-db_1
e5053c53b6a5        xibosignage/xibo-xmr:release-0.7     "/entrypoint.sh"         6 days ago          Up About a minute   0.0.0.0:9505->9505/tcp, 50001/tcp   xibodocker_cms-xmr_1
afebc9efc85e        mysql:5.6                            "docker-entrypoint.sh"   9 months ago        Up About a minute   3306/tcp                            xibodocker183_cms-db_1

If I do stop everything, destroy the container xibodocker183_cms-db_1 and docker-compose start, it goes up correctly. But if I restart the node, the new mysql container is downloaded again.

How can I stop that?

Whats in the docker-compose file that you are using with the up command?

Sorry for the delay. This is my docker-compose.yml:

version: “2.1”

services:
cms-db:
image: mysql:5.6
volumes:
- “./shared/db:/var/lib/mysql”
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.7
ports:
- “9505:9505”
restart: always
mem_limit: 256m
env_file: config.env
cms-web:
image: xibosignage/xibo-cms:release-1.8.6
volumes:
- “./shared/cms/custom:/var/www/cms/custom”
- “./shared/backup:/var/www/backup”
- “./shared/cms/web/theme/custom:/var/www/cms/web/theme/custom”
- “./shared/cms/library:/var/www/cms/library”
- “./shared/cms/web/userscripts:/var/www/cms/web/userscripts”
restart: always
links:
- cms-db:mysql
- cms-xmr:50001
environment:
- XMR_HOST=cms-xmr
env_file: config.env
ports:
- “80:80”
mem_limit: 1g