UNPKG

api-m77-raspberry-wifi-node-nmcli

Version:

API to interact with the functionality of the m77-raspberry-wifi-node-nmcli module

29 lines (28 loc) 899 B
services: api_net: init: true image: api_net container_name: api_net network_mode: host volumes: - "/:/host:ro" - "/run:/run" - "/etc/machine-id:/etc/machine-id:ro" working_dir: /app environment: - PORT=8081 # Set the port used by the network management API - ALLOW_HOSTS=m77dev.local # Set the host (or comma-separated hosts) allowed to send requests - DEBUG_LEVEL=0 # Set the logging level: 0 (none) ... 2 (full) restart: unless-stopped ulimits: nproc: 8192 nofile: soft: 65536 hard: 65536 healthcheck: # *** ADJUST THE HEALTH PORT TO MATCH THE ONE DEFINED ABOVE *** test: ["CMD", "wget", "-q", "--spider", "--tries=1", "--timeout=2", "http://127.0.0.1:8081/api/"] interval: 5s timeout: 3s retries: 12 start_period: 60s