Skip to content

Feature: 在docker中新建容器并使用映射时,映射文件夹koishi可以不为空 #34

@borraken

Description

@borraken

Describe the problem related to the feature request

docker部署的koishi本体突然不好使了,就想着干脆重新新建一个,并把原来的koishi.yml和db文件直接映射过去,结果新建后容器不断重启。
image

compose.yml

version: "3"
services:
  koishi:
    image: koishijs/koishi:v1.14.7
    container_name: koishi2
    volumes:
      - /volume1/docker/koishi2/koishi.yml:/koishi/koishi.yml:rw
      - /volume1/docker/koishi2/koishi.db:/koishi/data/koishi.db:rw
    # ports:
    #   - "5140:5140"
    restart: always
    network_mode: "host"
    environment:      
      HTTP_PROXY: 'http://127.0.0.1:7890'
      HTTPS_PROXY: 'http://127.0.0.1:7890'
      NO_PROXY: '127.0.0.1,localhost,*.test.lan'

Describe the solution you'd like

rt

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions