我有以下 docker 命令:
sudo docker run --env-file env.list \
-p 80:8080 \
-v $PWD/snowplow/config:/snowplow/config \
snowplow/scala-stream-collector-kinesis:1.0.0 \
--config /snowplow/config/config.hocon
我正在尝试将其移动到一个docker-compose.yml
文件中,但我遇到了 --config 选项的问题。我的文件看起来像这样,任何人都可以看到我哪里出错了:
version: '3.3'
services:
collector:
image: snowplow/scala-stream-collector-kinesis:1.0.0
environment:
- AWS_CBOR_DISABLE=1
ports:
- "80:8080"
volumes:
- ./data/snowplow:/snowplow
configs:
- source: collectorcnf
target: /snowplow/config/config.hocon
configs:
collectorcnf:
file: ./data/snowplow/config/config.hocon
我已经相应地移动了配置文件以匹配。我收到的错误消息sudo docker-compose up
是:
collector_1 | Error: Missing option --config
collector_1 | Try --help for more information.
collector_1 | configuration has no "collector" path