Dockerized docs, powered by VuePress
You may set the ports in
docker-compose.yml, default is
And then build the image
Next, write docs in the
docker-compose up -d
To enable basic http auth, you should edit
For example, to allow user
username to access with password
pa$$word, and user
username1 to access with password
docs/security.txt should be
username pa$$word username1 pa$$word!
PLEASE MAKE SURE THERE IS A BLANK LINE AT THE END.
NO SPACE-ish CHARACTER IS ALLOWED IN EITHER USERNAME OR PASSWORD. AND
: IS NOT ALLOWED IN USERNAME.
Or, you can generate a
.htpasswd by yourself, and place it in
docs/.htpasswd are both missing, there will be no restriction.
(which means you could remove
docs/.htpasswd to disable access restrict).