[base]
path = {base}

[mysql]
image = mariadb
volumes = {container}conf/db/mariadb:/etc/mysql,/data/convert_mysql/{name}/data:/var/lib/mysql
environment = MYSQL_ROOT_PASSWORD=123456

[redis]
port = 6379:6379
memory = 4096M
volumes = {container}conf/db/redis/redis.conf:/etc/redis.conf

[convert]
port = 80:80,8087:8087,8088:8088
volumes = {container}web:/www,{container}web/convert/static:/usr/local/convert/front/static,{container}web/convert/files:/usr/local/convert/runtime/files
command = convert

#使用dm call office-convert_call id=1来运行，id为要转换的文件id
[convert_call]
image = convert
volumes = {container}web:/www,{container}web/convert/static:/usr/local/convert/front/static,{container}web/convert/files:/usr/local/convert/runtime/files
call = python
param = /usr/local/convert/convert.py -f {$id:1}