blessing-skin-in-docker/README.md
zhangyuheng 1d97e0d568 new file: Dockerfile
modified:   README.md
	new file:   docker-compose.yml
2023-12-05 14:19:12 +08:00

997 B
Raw Blame History

blessing-skin-in-docker

在容器中运行 Blessing Skin Server

1. 准备镜像

git clone https://ssl.lunadeer.cn:14446/zhangyuheng/blessing-skin-in-docker.git
cd blessing-skin-server
docker build -t blessing-skin:6.0.2 .

2. 初始化数据

cd /some/where/your/dir
mkdir blessing-skin
cd blessing-skin
mkdir storage

在 docker-compose.yml 文件中写入以下内容:

version: "3.7"
services:
  blessing-skin:
    image: blessing-skin:6.0.2
    container_name: blessing-skin
    restart: always
    ports:
      - 8013:80
    environment:
      - TZ=Asia/Shanghai
    volumes:
      - blessing-skin-storage:/app/storage

volumes:
  blessing-skin-storage:
    name: blessing-skin-storage
    driver: local
    driver_opts:
      o: bind
      type: none
      device: ./storage

3. 运行

docker compose up -d

你的所有数据将存储在 storage 下如果希望使用sqlite数据库请将数据库路径设置在 /app/storage 下。