Is there a way use a single xmr docker container to serve several cms/db containers? I have tried to modify the xmr config of the standard yml-file to forward port 50001 to the docker host IP (i.e. 192.168.110.222:50001)
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_1.8.2
ports:
- "9505:9505"
- "50001:50001"
restart: always
mem_limit: 256m
env_file: config.env
cms-web:
image: xibosignage/xibo-cms:release_1.8.2
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
On the other cms I use:
version: "2.1"
services:
other-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
other-cms-web:
image: xibosignage/xibo-cms:release_1.8.2
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:
- other-cms-db:mysql
environment:
- XMR_HOST=192.168.110.222:50001
env_file: config.env
ports:
- "8081:80"
mem_limit: 1g
My docker host is debian 9.2 with docker version 17.09.0-ce, build afdb6d4 with IP: 192.168.110.222.
I think I read in another post on here that something like this should work, but there was no further explanation, and I guess I need that This docker thing is fairly new stuff to me
Any help would be much appreciated. Aslo is there a way to test that I can reach xmr on 192.168.110.222:50001?