Open Xiaoph123 opened 4 days ago
端口是7072,但是开通后并没有被占用7072端口,API服务没有启动成功,不知是什么原因
jmalcloud_server在另一个容器里
jmalcloud_server在另一个容器里 我该怎么操作?
好像有报错
看看你的docker-compose.yml文件是什么样的
这是我的yml文件
services:
mongo:
container_name: jmalcloud_mongodb
image: registry.cn-beijing.aliyuncs.com/jmalcloud/mongo:4.4
environment:
TZ: "Asia/Shanghai"
volumes:
- /mnt/redcatdata/jmal-cloud-server/docker/jmalcloud/mongodb/data/db:/data/db
- /mnt/redcatdata/jmal-cloud-server/docker/jmalcloud/mongodb/custom:/etc/mongo
- /mnt/redcatdata/jmal-cloud-server/docker/jmalcloud/mongodb/backup:/dump
restart: unless-stopped
healthcheck:
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 3
command: --wiredTigerCacheSizeGB 0.5
jmalcloud:
container_name: jmalcloud_server
image: registry.cn-beijing.aliyuncs.com/jmalcloud/jmalcloud:latest
environment:
MONGODB_URI: "mongodb://mongo:27017/jmalcloud"
TZ: "Asia/Shanghai"
JVM_OPTS: "-Xms512m -Xmx1024m"
volumes:
- /mnt/redcatdata/jmal-cloud-server/docker/jmalcloud/files:/jmalcloud/files/
restart: unless-stopped
depends_on:
mongo:
condition: service_healthy
nginx:
container_name: jmalcloud_nginx
image: registry.cn-beijing.aliyuncs.com/jmalcloud/jmalcloud-nginx:latest
ports:
- 7070:80
- 7071:8089
environment:
TZ: "Asia/Shanghai"
links:
- jmalcloud
- office
restart: unless-stopped
office: # Optional
container_name: jmalcloud_office
image: registry.cn-beijing.aliyuncs.com/jmalcloud/onlyoffice_documentserver:8.0.1
environment:
TZ: "Asia/Shanghai"
JWT_SECRET: "P25rrddd"
restart: unless-stopped
我对比了一下你官网提供的yml文件我发现端口需要指定,但是我添加上还是不行 添加端口后重启jmal还是不行:
你是用一键脚本吗,推荐直接使用docker-compose,脚本已经没有维护了
我平常用jc.sh重启,其他情况用的是docker-compose
换成了docker-compose就行了
如题,我如何手动启动jmal的API功能