openimsdk / openim-docker

openim-docker configuration for deploying OpenIM. Provides a build solution for a stable distribution, as well as a docker compose deployment strategy
https://openim.io
Apache License 2.0
31 stars 37 forks source link

[DOC]: How to Modify Configuration #136

Open skiffer-git opened 2 months ago

skiffer-git commented 2 months ago

To modify the configuration by setting environment variables, follow these rules:

  1. For modifying the openim-serve configuration file: Set the environment variable using the pattern IMENV_filename_variable=${value}. Ensure to replace any hyphens in the filename with underscores.

  2. For modifying the openim-chat configuration file: Use the pattern CHATENV_filename_variable=${value}. As with the server configuration, replace hyphens in the filename with underscores.

Examples: in docker-compose.yaml

These guidelines ensure that you correctly set the environment variables needed to modify specific configuration settings.

skiffer-git commented 2 months ago

openim-server: image: ${OPENIM_SERVER_IMAGE} container_name: openim-server ports:

skiffer-git commented 3 weeks ago

Reference for configuration files:

https://github.com/openimsdk/open-im-server/tree/main/config https://github.com/openimsdk/chat/tree/main/config