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
..
Dockerfile 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

config 配置

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

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

copy hugo source file to hugofolder

复制hexo源码到hugo目录下

docker-compose.yml 内容如下

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

run.sh 内容如下

hugo

run 运行

run docker-compose upordocker-compose up -d

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

other 其他功能

change run.shfile to run other hugo orders