update README.md

This commit is contained in:
Chenx221 2024-05-24 22:26:12 +08:00
parent af25916103
commit e9f09faad1
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -108,7 +108,10 @@ Garnet 1.0.8 / Redis 7.0.15
------------
### Docker (测试)
Docker自己装
```bash
sudo docker build -t chenx221-yii2-netdisk .
docker network create my-network
docker run -d --name mariadb-container \
-v /home/chenx221/db.sql:/docker-entrypoint-initdb.d/db.sql \
@ -126,6 +129,12 @@ docker run -d -p 80:80 -p 443:443 \
--network=my-network \
chenx221-yii2-netdisk
```
.env
```
DB_HOST=mariadb-container:3306
RD_HOST=redis-container
```
.sql文件别忘了+x 和777
### For Windows