akondas/symfony-consul-bundle
Composer 安装命令:
composer require akondas/symfony-consul-bundle
包简介
Auto register symfony app with Consul
README 文档
README
Register and deregister your Symfony application in Consul
1. Install
composer require akondas/symfony-consul-bundle
2. Configure
Enable this bundle in Symfony, add this line to your bundles.php file:
Akondas\ConsulBundle\ConsulBundle::class => ['all' => true]
Add routing:
consul_bundle: resource: '@ConsulBundle/Resources/config/routing.yml'
Configuration reference:
consul:
service:
name: 'subscription-service' # name of your app
host: 'localhost' # host of your application under which it is available
port: 8000 # port of your application under which it is available
client:
base_uri: http://127.0.0.1:8500 # consule server uri
3. Use
Available commands:
bin/console consul:register- register application in Consulbin/console consul:deregister- deregister application from Consulbin/console debug:consul-check- debug Consul check
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-28
