Browse Source

added docker-compose.yml

Fabian Peter Hammerle 2 weeks ago
parent
commit
6e4e309b4e
1 changed files with 21 additions and 0 deletions
  1. 21 0
      docker-compose.yml

+ 21 - 0
docker-compose.yml

@@ -0,0 +1,21 @@
+version: '2.2'
+
+volumes:
+  config:
+
+services:
+  monitor:
+    build: .
+    image: fphammerle/andrewjfreyer-mqtt-bluetooth-presence-monitor
+    container_name: mqtt_bluetooth_presence_monitor
+    volumes:
+    # > ./support/init: line 60: /monitor-config/.public_name_cache: Permission denied
+    - config:/config:rw
+    network_mode: host # bluetooth
+    userns_mode: host # required for host network mode
+    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/