-
每个单独服务如何配置单独的 数据库配置或者redis配置? |
Beta Was this translation helpful? Give feedback.
Answered by
zuihou
Mar 23, 2023
Replies: 1 comment 1 reply
-
mysql.yml. redis.yml 等是全局配置文件,所有服务都会读。 读取顺序为: lamp-xxx-server.yml > mysql.yml. 所以 xxx 服务要访问A db, 只需要将数据库配置复制到 lamp-xxx-server.yml 中,即可覆盖mysql.yml 中的全局配置。 reids 同理 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zqb666
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mysql.yml. redis.yml 等是全局配置文件,所有服务都会读。
lamp-xxx-server.yml、lamp-yyy-server.yml 等是各个服务自己的配置文件。
读取顺序为: lamp-xxx-server.yml > mysql.yml.
所以 xxx 服务要访问A db, 只需要将数据库配置复制到 lamp-xxx-server.yml 中,即可覆盖mysql.yml 中的全局配置。
reids 同理