1.0 KiB
1.0 KiB
在容器中运行 Blessing Skin Server
1. 准备镜像
git clone https://ssl.lunadeer.cn:14446/zhangyuheng/blessing-skin-server.git
cd blessing-skin-server
docker build -t blessing-skin .
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:latest
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
运行一次容器生成配置数据,然后 control + c 退出:
docker compose up
3. 生成 APP_KEY
docker run --entrypoint="" --rm -it -v ./storage:/app/storage blessing-skin php artisan key:generate
4. 运行
docker compose up -d