version: '3.4' services: monocker: container_name: monocker image: monocker build: context: . dockerfile: ./Dockerfile environment: # Optional label to preface messages. Handy if you are running Monocker on different machines SERVER_LABEL: 'Dev' # Optional - regardless of any other settings, you can ignore or include 'exited' EXCLUDE_EXITED: 'false' # Optional - only show when container state changes to being offline (paused, exited, running (unhealthy), or dead) ONLY_OFFLINE_STATES: 'false' # [Optional] - set the poll period in seconds. Defaults to 10 seconds, which is also the minimum. PERIOD: 30 # [Optional] - Supress startup messages from being sent. Default is false DISABLE_STARTUP_MSG: 'false' # Specify the messaging platform and details, or omit this if only wanting container logs MESSAGE_PLATFORM: 'discord@webhookURL' # MESSAGE_PLATFORM: 'pushbullet@your_api_key@your_device_id' # MESSAGE_PLATFORM: 'pushover@your_user_key@your_app_api_token' # MESSAGE_PLATFORM: 'discord@webhook_url' # [Optional] - Set this value to a docker socket URL, if you want to connect to docker this way. Leave it blank or omit it otherwise # DOCKER_HOST: 'tcp://192.168.1.134:2375' # Filtering monitored containers - Optional - see readme # If missing or set to false (default), any containers with a "monocker.enable: 'false'" label will be excluded, and all others monitored. # If set to true, only containers with a "monocker.enable: 'true'" label will be included. LABEL_ENABLE: 'false' volumes: - /var/run/docker.sock:/var/run/docker.sock:ro restart: unless-stopped