saltedfishjun
关注
141918 号成员,2024-05-10 22:27:20 加入
3
个人主页 浏览
51m31s
在线时长
  • 求助在 docker 部署思源 3.1.1 后不能通过 ipv4 内网地址访问

    2024-07-29 21:36

    好吧,麻烦了,真是奇奇怪怪 😭

  • 求助在 docker 部署思源 3.1.1 后不能通过 ipv4 内网地址访问

    2024-07-29 21:10

    请问需要 docker 的哪些方面截图,我把 iptables 禁用了,宿主机没有防火墙相关的东西,host 模式宿主机和容器均没有 ipv4 的端口监听,桥接模式容器没有 ipv4 的监听,宿主机有,其他容器都是正常的,只有思源是这个情况

  • 求助在 docker 部署思源 3.1.1 后不能通过 ipv4 内网地址访问

    2024-07-29 20:52
    name: fascinating_sapakorn
    services:
      main:
        cpu_shares: 90
        command:
          - --workspace=/siyuan/workspace/
          - --accessAuthCode=siyuan
        container_name: siyuan
        deploy:
          resources:
            limits:
              memory: 64246M
        environment:
          - TZ=
        hostname: siyuan
        image: b3log/siyuan:latest
        ports:
          - target: 6806
            published: "6806"
            protocol: tcp
        restart: unless-stopped
        user: 1000:1000
        volumes:
          - type: bind
            source: /media/saltedfishjun/nas1/siyuan
            target: /siyuan/workspace
        devices: []
        cap_add: []
        network_mode: bridge
        privileged: false
    x-casaos:
      author: self
      category: self
      hostname: ""
      icon: ""
      index: /
      is_uncontrolled: false
      port_map: "6806"
      scheme: http
      store_app_id: fascinating_sapakorn
      title:
        custom: siyuan
    
    
  • 求助在 docker 部署思源 3.1.1 后不能通过 ipv4 内网地址访问

    2024-07-29 20:52

    QQ1722256987856.png

    这是启动时的日志,

    下面是安装时使用的

    services:
      siyuan:
        image: b3log/siyuan:v3.1.1
        container_name: ${CONTAINER_NAME}
        restart: unless-stopped
        user: '1000:1000'
        ports:
          - ${PANEL_APP_PORT_HTTP}:6806
        networks:
          - 1panel-network
        command: ['--workspace=/siyuan/workspace/', '--accessAuthCode=${ACCESS_AUTH_CODE}']
        volumes:
          - ./data:/siyuan/workspace
        environment:
          - TZ=${TIME_ZONE}
        labels:
          createdBy: "Apps"
    networks:  
      1panel-network:  
        external: true
    

    这是安装完成启动后导出的

    name: fascinating_sapakorn
    services:
      main:
        cpu_shares: 90
        command:
          - --workspace=/siyuan/workspace/
          - --accessAuthCode=siyuan
        container_name: siyuan
        deploy:
          resources:
            limits:
              memory: 64246M
        environment:
          - TZ=
        hostname: siyuan
        image: b3log/siyuan:latest
        ports:
          - target: 6806
            published: "6806"
            protocol: tcp
        restart: unless-stopped
        user: 1000:1000
        volumes:
          - type: bind
            source: /media/saltedfishjun/nas1/siyuan
            target: /siyuan/workspace
        devices: []
        cap_add: []
        network_mode: bridge
        privileged: false
    x-casaos:
      author: self
      category: self
      hostname: ""
      icon: ""
      index: /
      is_uncontrolled: false
      port_map: "6806"
      scheme: http
      store_app_id: fascinating_sapakorn
      title:
        custom: siyuan