docker-compose.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: '2.2'
  2. networks:
  3. default:
  4. driver_opts:
  5. com.docker.network.bridge.name: itr-cc1101-mqtt
  6. #volumes:
  7. # config:
  8. services:
  9. broker:
  10. # v2 binds to loopback device
  11. # https://github.com/eclipse/mosquitto/blob/v2.0.0/ChangeLog.txt#L6
  12. image: docker.io/eclipse-mosquitto:1.6
  13. user: mosquitto
  14. read_only: yes
  15. #ports: ['127.0.0.1:1883:1883/tcp']
  16. cap_drop: [all]
  17. security_opt: [no-new-privileges]
  18. cpus: 0.4
  19. mem_limit: 32M
  20. client:
  21. build: .
  22. image: fphammerle/intertechno-cc1101-mqtt
  23. #volumes:
  24. #- config:/etc/intertechno-cc1101-mqtt:ro
  25. command: intertechno-cc1101-mqtt
  26. --mqtt-host broker
  27. # --mqtt-username raspberrypi
  28. # --mqtt-password-file /etc/intertechno-cc1101-mqtt/mqtt-password
  29. # --alias-file /etc/intertechno-cc1101-mqtt/aliases.json
  30. # --power-setting 29
  31. devices: [/dev/spidev0.0]
  32. read_only: true
  33. cap_drop: [all]
  34. security_opt: [no-new-privileges]
  35. # docker-compose >=2.2,<3
  36. cpus: 0.4
  37. mem_limit: 32M
  38. # https://docs.docker.com/compose/compose-file/compose-file-v2/