docker-compose.yml 408 B

12345678910111213141516171819
  1. version: '2.2'
  2. networks:
  3. default:
  4. driver_opts:
  5. com.docker.network.bridge.name: switchbot-mqtt
  6. services:
  7. broker:
  8. image: docker.io/eclipse-mosquitto:latest
  9. user: mosquitto
  10. read_only: yes
  11. ports: ['127.0.0.1:1883:1883/tcp']
  12. cap_drop: [all]
  13. security_opt: [no-new-privileges]
  14. cpus: 0.4
  15. mem_limit: 32M
  16. # https://docs.docker.com/compose/compose-file/compose-file-v2/