Example Dockerfile used to build the base image:
FROM node:lts-alpine3.14
WORKDIR /site
COPY package.json /site
RUN npm install hexo-cli -g
RUN npm install
COPY . /site
CMD hexo server
EXPOSE 4000
Example docker-compose.yml file to run an instance locally:
services:
wiki:
image: anthonyrussano/doc-wiki:arm64 # or amd64
# web server will be started on port 80
ports:
- 80:4000
restart: always
# the service will be looking for a docs/ folder in the same path you launch the command from.
volumes:
- ./docs:/site/source/_posts
# optional path to include description.yml for category and tag definitions
- ./_data:/site/source/_data
To start the wiki service on port 80: run this command from your project folder:
docker-compose up -d
Just add markdown files to the docs folder.
Organize files into categories using nested folders.
Add keywords within the front matter section of each file.
Example article front matter:
---
title: Example Title
image: <image-name>
tags:
- Example Keyword
---
Content type
Image
Digest
Size
54.6 MB
Last updated
almost 5 years ago
docker pull anthonyrussano/doc-wiki:arm64