1services:
2  mosquitto:
3    image: eclipse-mosquitto:latest
4    volumes:
5      - ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
6    restart: unless-stopped
7    networks:
8      net-tools:
9        ipv4_address: 192.0.2.3
10  mqttsn-gateway:
11    image: kyberpunk/paho
12    volumes:
13      - ./gateway.conf:/etc/paho/gateway.conf:ro
14    restart: unless-stopped
15    networks:
16      net-tools:
17        ipv4_address: 192.0.2.2
18networks:
19  net-tools:
20    name: net-tools0
21    external: true
22