123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- version: '2.2'
- networks:
- default:
- driver_opts:
- com.docker.network.bridge.name: systemctl-mqtt
- services:
- broker:
- image: docker.io/eclipse-mosquitto:latest
- user: mosquitto
- read_only: yes
-
- cap_drop: [all]
- security_opt: [no-new-privileges]
- cpus: 0.4
- mem_limit: 32M
- client:
- build: .
- image: fphammerle/systemctl-mqtt
- volumes:
-
- - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:rw
- command: systemctl-mqtt
- --poweroff-delay-seconds 60
- --mqtt-host broker
- --mqtt-disable-tls
-
-
- hostname: raspberrypi
- userns_mode: host
-
-
-
- user: '0'
- read_only: true
- cap_drop: [all]
- security_opt:
- - no-new-privileges
-
-
-
- - apparmor=systemctl-mqtt
-
- cpus: 0.4
- mem_limit: 32M
|