How can my custom app communicate with official Edge Apps?

0
Please explain, this question has been forwarded to me.
asked
1 answers
0

Hey Monika,

that’s a very good question. If you would like to exchange data with an officially released Siemens app (e.g. databus) your custom application needs to be in the right virtual docker network.

The virtual network name which need to be used is called proxy-redirect.

You need to add this to your docker-compose file (or add it via the IE Publisher) and assign it to your service.

Once your application is in this network it can communication to e.g databus application.

 

Please see below an example docker-compose file.

 

version: '2.4'

services:
    pingpong_nodejs:
        build:
            context: ./src
        image: pingpong_nodejs:1.2.0
        networks:
            - proxy-redirect 
        mem_limit: 100mb
        volumes:
            - './publish/:/publish/'
            - './cfg-data/:/cfg-data/'

networks:
    proxy-redirect:
        external:
            name: proxy-redirect

 

Please feel free to check the following Github Example as well, which introduces a simple example how to access the Databus via your custom application: https://github.com/industrial-edge/pingpong-nodejs

answered