Skip to content

Docker

As of version 0.3.0 switchboard now has support for Docker. Please visit the installation section for details on getting the latest image available via ghcr.

Below outlines a simple example on how to use switchboard via Docker.

docker run -d -v ${SRC} -v ${DEST} ghcr.io/cian911/switchboard:v0.3.0 watch --config config.yaml

This will start the switchboard container and keep it running in the background, all you need to provide are two volume mounts, the source and destination paths for you watched files.

docker-compose

Knowing that having multiple directories to watch for can get a bit unweildly, you can also use docker-compose to better organise your volume mounts, like below.

version: '3.7'

services:
  switchboard:
    image: "ghcr.io/cian911/switchboard:v0.3.0"
    command:
      - watch
      - --config.yaml
    volumes:
      - "/Users/user/input"
      - "/Users/user/output"