I have a Xibo in docker running for sometimes without any issue. Then I added a secondary network interface to the server running ubuntu 18.04. When i add a routing policy for my interfaces, Xibo does not respond (but other websites respond). And if i remove routing-policy from netplan and stick to plain default gateway configurations, xibo works.
It seems my routing-policy works due to my being able to ping from other networks as well as other websites served from that server working well.
I cannot figure where lies the problem. Is it due to docker configuration? Where should i change so i can access xibo from both interfaces from different netowrks?
following is my docker-compose.yml
version: “2.1”
networks:
default:
ipam:
config:
- subnet: 10.8.54.0/24
gateway: 10.8.54.204
- subnet: x.x.x.0/26
gateway: x.x.x.x
services:
cms-db:
image: mysql:5.6
restart: always
volumes:
- "./shared/db:/var/lib/mysql"
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
restart: always
ports:
- "9505:9505"
mem_limit: 256m
env_file: config.env
cms-web:
image: xibosignage/xibo-cms:release-2.1.0
restart: always
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"
links:
- cms-db:mysql
- cms-xmr:50001
environment:
- XMR_HOST=cms-xmr
env_file: config.env
ports:
- "20000:80"
mem_limit: 1g
Pls help me to fix this.
Thanks so much in advance.