col-hexo is a Docker image to use Docker or Docker Compose to run Hexo.
Hexo is a fast, simple & powerful blog framework. It use plugins to provide features powerful APIs for limitless extensibility. Various plugins are available to support most template engines (EJS, Pug, Nunjucks, and many others). Easily integrate with existing NPM packages (Babel, PostCSS, Less/Sass, etc).
Developing apps today requires so much more than writing code. Multiple languages, frameworks, architectures, and discontinuous interfaces between tools for each lifecycle stage creates enormous complexity.
Docker simplifies and accelerates your workflow, while giving developers the freedom to innovate with their choice of tools, application stacks, and deployment environments for each project.
To learn more about all the features of Docker, see Docker - https://www.docker.com/.
Docker Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
To learn more about all the features of Docker Compose, see Docker Compose - https://docs.docker.com/compose/.
You can run it with Docker or Docker Compose.
You can replace the following with your preferred content.
First, edit or modify the ./Dockerfile.
docker build -t cloudolife/col-hexo .
Edit or modify ./docker-compose.yml.
docker run --rm -it --name col-hexo col-hexo bash
docker-compose run --service-ports app bash
hexo init to create a new site in the container.
hexo init col-hexo-docker-example
Run Hexo server.
Now you can open http://localhost:4000 in your browser, and check whether the site works correctly.