自建语音书AudioBook-audiobookshelf.org

date
Sep 3, 2022
slug
newservice-audiobookshelf
status
Published
summary
新服务 电子书 语音
tags
service
type
Post
notion image

Summary

    scp -rP 22022 <path-to-folder> root@moack100m.hxxe.xx:/data/audiobookshelf/audiobooks/
    
    # scp -rP 22022  root@moack100m.hate.cc:/data/audiobookshelf/audiobooks/

    步骤

     
    export DOCKER_PROJ=audiobookshelf
    export DOCKER_PORT=18510
    mkdir /data/$DOCKER_PROJ; cd /data/$DOCKER_PROJ
    
    cat > docker-compose.yml <<EOF
    version: "3.7"
    services:
      $DOCKER_PROJ:
        image: ghcr.io/advplyr/audiobookshelf:latest
        container_name: $DOCKER_PROJ
        restart: unless-stopped
        environment:
          - AUDIOBOOKSHELF_UID=99
          - AUDIOBOOKSHELF_GID=100
        ports:
          - $DOCKER_PORT:80
        volumes:
          - ./audiobooks:/audiobooks
          - ./podcasts:/podcasts
          - ./config:/config
          - ./metadata:/metadata
    networks:
      default:
        name: npm_nginx_proxy_manager-network
        external: true
    EOF
    
    docker-compose down; docker-compose up -d; sleep 1s; docker-compose logs -f
    notion image

    更新

    # Docker Compose V1
    docker-compose --file /data/$DOCKER_PROJ/docker-compose.yml pull
    docker-compose --file /data/$DOCKER_PROJ/docker-compose.yml up -d
    
    # Docker Compose V2
    docker compose --file /data/$DOCKER_PROJ/docker-compose.yml pull
    docker compose --file /data/$DOCKER_PROJ/docker-compose.yml up -d

    local cache / cloudflare cache都要关闭,不然安装会有各种问题

    CloudFlare设立新的域名

    notion image

    npm nginx proxy manager配置

    notion image
    notion image
     
     

    验证

    notion image
     

    Mobile

    notion image

    © Ying Bun 2021 - 2023