version: '2.2' networks: default: driver_opts: com.docker.network.bridge.name: itr-cc1101-mqtt #volumes: # config: services: broker: # v2 binds to loopback device # https://github.com/eclipse/mosquitto/blob/v2.0.0/ChangeLog.txt#L6 image: docker.io/eclipse-mosquitto:1.6 user: mosquitto read_only: yes #ports: ['127.0.0.1:1883:1883/tcp'] cap_drop: [all] security_opt: [no-new-privileges] cpus: 0.4 mem_limit: 32M client: build: . image: fphammerle/intertechno-cc1101-mqtt #volumes: #- config:/etc/wireless-sensor-mqtt:ro command: intertechno-cc1101-mqtt --mqtt-host broker # --mqtt-username raspberrypi # --mqtt-password-file /etc/wireless-sensor-mqtt/mqtt-password devices: [/dev/spidev0.0] read_only: true cap_drop: [all] security_opt: [no-new-privileges] # docker-compose >=2.2,<3 cpus: 0.4 mem_limit: 32M # https://docs.docker.com/compose/compose-file/compose-file-v2/