Forked from https://github.com/hackmdio/docker-hackmd and use https://github.com/dy93/hackmd to build docker image. I use sqlite instead of postgres for easier backup.
- git
- docker (docker toolbox recommended)
- docker-compose (included in the docker toolbox)
See more here: https://www.docker.com/docker-toolbox
- Start you docker via
Docker Quickstart Terminal
, you will see a machine IP (remember that). - Run
git clone https://github.com/dy93/docker-hackmd.git
. - Run
docker-compose up
in your docker terminal. - Wait until see th log
HTTP Server listening at port 9999
, it will take few minutes based on your internet. - Open any browser and surf
<machine IP>:9999
Start your docker and enter the terminal, follow below commands:
cd docker-hackmd ## enter the directory
git pull ## pull new commits
docker-compose pull ## pull new containers
docker-compose up ## turn on
Just backup the data folder
Put the data folder back
Happy HackMD 😄