启动命令:
docker run --restart=always -p 9876:8080 --name conductor-server -v /opt/conductor/config:/app/config -d -e "CONFIG_PROP=config-mysql.properties" devops/conductor-server:latest
配置文件放入在config目录下方便修改
mysql配置文件:
# Servers.
conductor.jetty.server.enabled=true
conductor.grpc.server.enabled=false
# Database persistence model. Possible values are memory, redis, and dynomite.
# If ommitted, the persistence used is memory
#
# memory : The data is stored in memory and lost when the server dies. Useful for testing or demo
# redis : non-Dynomite based redis instance
# dynomite : Dynomite cluster. Use this for HA configuration.
db=mysql
jdbc.url=jdbc:mysql://localhost:3306/conductor
jdbc.username=root
jdbc.password=xxxx
# Hikari pool sizes are -1 by default and prevent startup
conductor.mysql.connection.pool.size.max=10
conductor.mysql.connection.pool.idle.min=2
# Elastic search instance type. Possible values are memory and external.
# If not specified, the instance type will be embedded in memory
#
# memory: The instance is created in memory and lost when the server dies. Useful for development and testing.
# external: Elastic search instance runs outside of the server. Data is persisted and does not get lost when
# the server dies. Useful for more stable environments like staging or production.
workflow.elasticsearch.instanceType=memory #采用内存模式的索引,生产环境建议采用ES
# Transport address to elasticsearch
workflow.elasticsearch.url=localhost:9300
# Name of the elasticsearch cluster
workflow.elasticsearch.index.name=conductor
# Additional modules (optional)
# conductor.additional.modules=class_extending_com.google.inject.AbstractModule
# Load sample kitchen sink workflow
loadSample=false #不加载样列
Content type
Image
Digest
Size
138.5 MB
Last updated
over 5 years ago
docker pull veadan/conductor-server