curl -fsSL https://test.docker.com -o test-docker.sh sudo sh test-docker.sh
第二部分:编写docker-compose.yml
接下来先给两个容器创建目录,然后在里面编写docker-compose.yml。
第一个是kavita:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
services: kavita: image: lscr.io/linuxserver/kavita:latest # Using the stable branch from the official dockerhub repo. container_name: kavita volumes: - ./manga:/manga # Manga is just an example you can have the name you want. See the following - ./comics:/comics # Use as many as you want - ./books:/books # - ./data:/kavita/config # Change './data if you want to have the config files in a different place. # /kavita/config must not be changed environment: - TZ=Your/Timezone ports: - "5000:5000"# Change the public port (the first 5000) if you have conflicts with other services restart: unless-stopped