From 0dad834273fb5ab5323e37a0da7468311dac8978 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 24 May 2024 14:35:12 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index e474761..3c3199a 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,11 @@ docker run -d --name mariadb-container \ -v /home/chenx221/db.sql:/docker-entrypoint-initdb.d/db.sql \ -e MYSQL_ROOT_PASSWORD=chenx221 \ --network=my-network \ + --restart always \ mariadb:latest docker run -d --name redis-container \ --network=my-network \ + --restart always \ redis docker run -d -p 80:80 -p 443:443 \ -v /home/chenx221/fullchain1.pem:/etc/ssl/fullchain1.pem \ @@ -127,6 +129,7 @@ docker run -d -p 80:80 -p 443:443 \ -v /home/chenx221/data:/var/www/html/data \ -v /home/chenx221/.env:/var/www/html/.env \ --network=my-network \ + --restart always \ chenx221-yii2-netdisk ``` .env From c7fc46ba9b6c6c3e9832c0dd41496800bcd2032e Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 24 May 2024 14:40:38 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3c3199a..5f0e08b 100644 --- a/README.md +++ b/README.md @@ -123,14 +123,14 @@ docker run -d --name redis-container \ --network=my-network \ --restart always \ redis -docker run -d -p 80:80 -p 443:443 \ - -v /home/chenx221/fullchain1.pem:/etc/ssl/fullchain1.pem \ - -v /home/chenx221/privkey1.pem:/etc/ssl/privkey1.pem \ - -v /home/chenx221/data:/var/www/html/data \ - -v /home/chenx221/.env:/var/www/html/.env \ +docker run -d -p 9443:443 \ + -v /root/cert/fullchain1.pem:/etc/ssl/fullchain1.pem \ + -v /root/cert/privkey1.pem:/etc/ssl/privkey1.pem \ + -v /root/data:/var/www/html/data \ + -v /root/.env:/var/www/html/.env \ --network=my-network \ --restart always \ - chenx221-yii2-netdisk + chenx2210/chenx221-yii2-netdisk ``` .env ``` From 3f39c86f8445a2a7e80395131c21f4f6f8281ef2 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 24 May 2024 14:41:03 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f0e08b..8d6b144 100644 --- a/README.md +++ b/README.md @@ -112,9 +112,8 @@ 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 \ + -v /root/db.sql:/docker-entrypoint-initdb.d/db.sql \ -e MYSQL_ROOT_PASSWORD=chenx221 \ --network=my-network \ --restart always \ From 98f7a73fd2d4ad5540fe7c936e297cb166a152c4 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 24 May 2024 15:41:02 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8d6b144..5638f87 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,8 @@ Docker自己装 ```bash sudo docker build -t chenx221-yii2-netdisk . + +docker network create my-network docker run -d --name mariadb-container \ -v /root/db.sql:/docker-entrypoint-initdb.d/db.sql \ -e MYSQL_ROOT_PASSWORD=chenx221 \