A docker image for running Docusaurus 2 based on lightweight Alpine Linux.
10K+
I'd like to quote the official website.
Docusaurus makes it easy to maintain Open Source documentation websites.
I hope this project would be useful for those who uses docker for building their server.
I chose Alpine Linux for make it a light-weight service. And I do choose node-alpine as its base image for the sake of some tweaks of Nginx version.
So this is composed of,
with,
'x' at the last of their version means that they could be upgraded by their maintainer.
This image runs Docusaurus 2 alpha rather than stable Docusaurus 1. Docusaurus 2 is developing very actively nowadays, so I hope that will be released soon.
I saw that there will be some migration jobs needed when a user upgrades whose Docusarus 1 to Docusaurus 2. So, at this moment I think it is reasonable to publish using Docusaurus 2.
But, as this is an alpha version, I put a automatic update trigger into this image. This can be disabled by setting environment variable like AUTO_UPDATE=false. This feature is enabled by default.
This is highly recommended that keeping backing-up your docs, always. For the several reasons, like, this is currently alpha version, or this Docker image's corruption and/or not matured yet, or physically damage, ... You have to back-up your data into your safe place.
First of all, it assumes that you have installed Docker on your system.
Pull the image from docker hub.
docker pull vivumlab/docusaurus
You can just dry run it out with the following command. The '--rm' option removes container when you terminate the interactive session.
docker run -it --rm \
-p 80:80 \
-v /where/docusaurus/config/locates:/docusaurus \
vivumlab/docusaurus
Then you have made a website accessible using 80 port with,
If you want to run this image as a daemon with your parameters, try to the followings.
docker run -d --name=docusaurus \
-p 80:80 \
-v /where/docusaurus/config/locates:/docusaurus \
-e TARGET_UID=1000 \
-e TARGET_GID=1000 \
-e AUTO_UPDATE=true \
-e WEBSITE_NAME=vivumlab \
-e TEMPLATE=classic \
-e RUN_MODE=development \
vivumlab/docusaurus
Then when the container runs, just let your browser browses:
http://localhost/
This project comes with MIT license. Please see the license file.
Content type
Image
Digest
Size
121.5 MB
Last updated
almost 6 years ago
docker pull vivumlab/docusaurus