You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/12/06 05:15:46 UTC
[GitHub] [incubator-kvrocks] usrtax edited a discussion: Whether Kvrocks can pass configurations through the command arguments or environments
GitHub user usrtax edited a discussion: Whether Kvrocks can pass configurations through the command arguments or environments
请问kvrocks是否支持通过命令行配置密码、端口、日志目录等参数?
如果不支持,就需要动态生成配置文件,感觉配合docker用比较麻烦
比如我redis的docker-compose.yml 是这么写的(可以在command直接通过环境变量设置,很方便)
```
version: '3'
services:
redis-log:
image: redis:7
restart: 'no'
volumes:
- /var/log/docker/api.user.tax/redis:/log
entrypoint: chown -R redis:redis /log
redis:
image: redis:7
restart: always
depends_on:
- redis-log
volumes:
- ./data/redis:/data
- /var/log/docker/api.user.tax/redis:/log
command: --port ${REDIS_PORT} --requirepass ${REDIS_PASSWORD} --logfile /log/redis.log
ports:
- ${REDIS_PORT}:${REDIS_PORT}
```
GitHub link: https://github.com/apache/incubator-kvrocks/discussions/848
----
This is an automatically sent email for issues@kvrocks.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@kvrocks.apache.org