jamebal / jmal-cloud-view

JmalCloud It's a private cloud storage project that makes it simple and secure to manage your files in the cloud. JmalCloud 是一款私有云存储网盘项目,能够简单安全管理您的云端文件
https://jmalcloud.github.io
MIT License
666 stars 135 forks source link

API地址无法正常启动 #326

Open Xiaoph123 opened 4 days ago

Xiaoph123 commented 4 days ago

如题,我如何手动启动jmal的API功能

Xiaoph123 commented 4 days ago

端口是7072,但是开通后并没有被占用7072端口,API服务没有启动成功,不知是什么原因 image image image

jamebal commented 4 days ago
截屏2024-11-30 22 56 27

jmalcloud_server在另一个容器里

Xiaoph123 commented 4 days ago

截屏2024-11-30 22 56 27 jmalcloud_server在另一个容器里 我该怎么操作? image

Xiaoph123 commented 4 days ago

好像有报错 image

jamebal commented 3 days ago

看看你的docker-compose.yml文件是什么样的

Xiaoph123 commented 3 days ago

这是我的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
Xiaoph123 commented 3 days ago

我对比了一下你官网提供的yml文件我发现端口需要指定,但是我添加上还是不行 image 添加端口后重启jmal还是不行: image

jamebal commented 3 days ago

你是用一键脚本吗,推荐直接使用docker-compose,脚本已经没有维护了

Xiaoph123 commented 3 days ago

我平常用jc.sh重启,其他情况用的是docker-compose

Xiaoph123 commented 3 days ago

换成了docker-compose就行了