Merge remote-tracking branch 'gt/main'
This commit is contained in:
commit
a4e43936a5
18
README.md
18
README.md
@ -112,22 +112,26 @@ Docker自己装
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo docker build -t chenx221-yii2-netdisk .
|
sudo docker build -t chenx221-yii2-netdisk .
|
||||||
|
|
||||||
docker network create my-network
|
docker network create my-network
|
||||||
docker run -d --name mariadb-container \
|
docker run -d --name mariadb-container \
|
||||||
-v /home/chenx221/db.sql:/docker-entrypoint-initdb.d/db.sql \
|
-v /root/db.sql:/docker-entrypoint-initdb.d/db.sql \
|
||||||
-e MYSQL_ROOT_PASSWORD=chenx221 \
|
-e MYSQL_ROOT_PASSWORD=chenx221 \
|
||||||
--network=my-network \
|
--network=my-network \
|
||||||
|
--restart always \
|
||||||
mariadb:latest
|
mariadb:latest
|
||||||
docker run -d --name redis-container \
|
docker run -d --name redis-container \
|
||||||
--network=my-network \
|
--network=my-network \
|
||||||
|
--restart always \
|
||||||
redis
|
redis
|
||||||
docker run -d -p 80:80 -p 443:443 \
|
docker run -d -p 9443:443 \
|
||||||
-v /home/chenx221/fullchain1.pem:/etc/ssl/fullchain1.pem \
|
-v /root/cert/fullchain1.pem:/etc/ssl/fullchain1.pem \
|
||||||
-v /home/chenx221/privkey1.pem:/etc/ssl/privkey1.pem \
|
-v /root/cert/privkey1.pem:/etc/ssl/privkey1.pem \
|
||||||
-v /home/chenx221/data:/var/www/html/data \
|
-v /root/data:/var/www/html/data \
|
||||||
-v /home/chenx221/.env:/var/www/html/.env \
|
-v /root/.env:/var/www/html/.env \
|
||||||
--network=my-network \
|
--network=my-network \
|
||||||
chenx221-yii2-netdisk
|
--restart always \
|
||||||
|
chenx2210/chenx221-yii2-netdisk
|
||||||
```
|
```
|
||||||
.env
|
.env
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user