docker-compose 模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
muryor 8f5f23381c add 3 years ago
..
README.md add 3 years ago
docker-compose.yml add 3 years ago
run.sh add 3 years ago

README.md


TEST

本文档仅供测试和开发使用

docker-compose项目

运行本文档代码需要安装dockerdocker-compose

下载该项目目录下的相应文件,执行docker-compose up运行项目,或通过docker-compose up -d后台运行项目。通过docker-compose down停止项目


config 配置

create new file docker-compose.yml run.sh and a folder hexo

创建新文件 docker-compose.yml run.sh 和一个目录hexo

copy hexo source file to hexofolder

复制hexo源码到hexo目录下

docker-compose.yml 内容如下

version: '3'
services:
  hexo:
    image: denalon/hexo-run
    ports: 
      - "4000:4000"
    environment:
      - PGID=1000
      - PUID=1000
      - TZ=Asia/Shanghai
    volumes:
      - ./run.sh:/run.sh
      - ./hexo:/hexo
    entrypoint:
      - sh
      - /run.sh

run.sh 内容如下

npm install
hexo generate
hexo server

run 运行

run docker-compose upordocker-compose up -d

在项目根目录下执行 docker-compose up或者docker-compose up -d

other 其他功能

change run.shfile to run other hexo orders