Ghost 搭建
ghost 博客系统,其优点如下
- 轻量,完全以博客为中心,没有复杂的功能,这就代表着占用内存小,系统消耗也小;
 - 界面支持完全的定制化,扩展性极强;
 
services:
  db:
    image: mysql:8.0
    volumes:
      - ./mysql:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: PASSWORD
      MYSQL_DATABASE: ghost
  ghost:
    image: ghost:5
    restart: always
    ports:
      - '10002:2368'
    volumes:
      - ./content:/var/lib/ghost/content
    depends_on:
      - db
    environment:
      database__client: mysql
      database__connection__host: db
      database__connection__user: root
      database__connection__password: PASSWORD
      database__connection__database: ghost
      url: http://blog.demo.com
volumes:
  mysql_data:
    driver: local
  ghost_data:
    driver: local
docker-compose.yaml