I’m running a container with an app that listens to the board ip (192.168.0.48). It works fine when I use ‘balena push’ in local mode without docker-compose.
However, my application is bigger now and I need to run multiple containers that are in the same network. For that I set up a docker-compose like:
version: '2' services: master: image: ros:melodic-ros-core container_name: master environment: - ROS_HOSTNAME = master - ROS_MASTER_URI=http://master:11311 command: roscore networks: - ros_net comm_node: build: context: . dockerfile: DockerfileComm container_name: comm_node environment: - ROS_HOSTNAME = comm_node - ROS_MASTER_URI=http://master:11311 network_mode: host networks: - ros_net labels: io.balena.features.balena-socket: '1' io.balena.features.dbus: '1' ports: - "1024:1024" depends_on: - master networks: ros_net:
But now I can’t listen to the board ip(192.168.0.48) anymore. How can I solve this? Can I access the host network and a custom network at the same time?