项目作者: nilsme

项目描述 :
Using docsify with docker
高级语言: Dockerfile
项目地址: git://github.com/nilsme/docsify_docker.git
创建时间: 2019-12-01T15:53:10Z
项目社区:https://github.com/nilsme/docsify_docker

开源协议:

下载


README

Serving a local folder with docsify in a docker container.

Use with docker-compose

Replace <folder_with_docs_on_host> with your local folder
name in docker-compose.yml.

Build and run container in background

  1. docker-compose up -d

Docker-compose stop container

  1. docker-compose stop

Use with docker

Build image

  1. docker build -t docs .

Run container in background

Replace <folder_with_docs_on_host> with your local folder name.

  1. docker run \
  2. --name docs \
  3. --rm \
  4. -d \
  5. -p 3000:3000/tcp \
  6. --volume <folder_with_docs_on_host>:/srv/docs \
  7. docs docsify serve .

Docker stop container

  1. docker stop docs

The container will be automatically removed after stop
due to the --rm option.

Access

The served folder is available at http://localhost:3000.