github.com/Jeffail/benthos/v3@v3.65.0/resources/docker/README.md (about)

     1  Benthos Docker
     2  ==============
     3  
     4  This is a multi stage Dockerfile that builds Benthos and then copies it to a
     5  scratch image. The image comes with a config that allows you to configure simple
     6  bridges using [environment variables](../../config/env/README.md) like this:
     7  
     8  ``` sh
     9  docker run \
    10  	-e "INPUT_TYPE=kafka_balanced" \
    11  	-e "INPUT_KAFKA_ADDRESSES=foo:6379" \
    12  	-e "OUTPUT_TYPE=nats" \
    13  	-e "OUTPUT_NATS_URLS=nats://bar:4222,nats://baz:4222" \
    14  	benthos
    15  ```
    16  
    17  Alternatively, you can run the image using a custom config file:
    18  
    19  ``` sh
    20  docker run --rm -v /path/to/your/config.yaml:/benthos.yaml benthos
    21  ```