|
@@ -7,10 +7,17 @@ volumes = {container}conf/db/mariadb:/etc/mysql,/data/convert_mysql/{name}/data:
|
|
environment = MYSQL_ROOT_PASSWORD=123456
|
|
environment = MYSQL_ROOT_PASSWORD=123456
|
|
|
|
|
|
[redis]
|
|
[redis]
|
|
-#port = 6379:6379
|
|
|
|
|
|
+port = 6379:6379
|
|
volumes = {container}conf/db/redis/redis.conf:/etc/redis.conf
|
|
volumes = {container}conf/db/redis/redis.conf:/etc/redis.conf
|
|
|
|
|
|
[convert]
|
|
[convert]
|
|
port = 80:80,8087:8087,8088:8088
|
|
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/upload
|
|
volumes = {container}web:/www,{container}web/convert/static:/usr/local/convert/front/static,{container}web/convert/files:/usr/local/convert/runtime/upload
|
|
-command = convert
|
|
|
|
|
|
+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/upload
|
|
|
|
+call = python
|
|
|
|
+param = /usr/local/convert/convert.py -f {$id:1}
|