updated .env path for docker run in README

pull/139/head
13621160019@163.com 2022-04-03 00:17:55 +08:00
parent ccec8d98a2
commit 47b954346a
5 changed files with 5 additions and 5 deletions

View File

@ -62,7 +62,7 @@ docker run -d -v c:\myems-aggregation\.env:/code/.env --restart always --name my
``` ```
On Linux host, bind-mount the .env to the container: On Linux host, bind-mount the .env to the container:
```bash ```bash
docker run -d -v /myems-aggregation/.env:/.env --restart always --name myems-aggregation myems/myems-aggregation docker run -d -v /myems-aggregation/.env:/code/.env --restart always --name myems-aggregation myems/myems-aggregation
``` ```
* -d Run container in background and print container ID * -d Run container in background and print container ID

View File

@ -100,7 +100,7 @@ docker run -d -p 8000:8000 -v c:\myems-upload:/var/www/myems-admin/upload -v c:\
On Linux host, bind-mount a share upload file folder at /myems-upload to the container, On Linux host, bind-mount a share upload file folder at /myems-upload to the container,
and also bind-mount the .env to the container: and also bind-mount the .env to the container:
```bash ```bash
docker run -d -p 8000:8000 -v /myems-upload:/var/www/myems-admin/upload -v /myems-api/.env:/.env --restart always --name myems-api myems/myems-api docker run -d -p 8000:8000 -v /myems-upload:/var/www/myems-admin/upload -v /myems-api/.env:/code/.env --restart always --name myems-api myems/myems-api
``` ```
* -d Run container in background and print container ID * -d Run container in background and print container ID

View File

@ -61,7 +61,7 @@ docker run -d -v c:\myems-cleaning\.env:/code/.env --restart always --name myems
``` ```
On Linux host, bind-mount the .env to the container: On Linux host, bind-mount the .env to the container:
```bash ```bash
docker run -d -v /myems-cleaning/.env:/.env --restart always --name myems-cleaning myems/myems-cleaning docker run -d -v /myems-cleaning/.env:/code/.env --restart always --name myems-cleaning myems/myems-cleaning
``` ```
* -d Run container in background and print container ID * -d Run container in background and print container ID

View File

@ -61,7 +61,7 @@ docker run -d -v c:\myems-modbus-tcp\.env:/code/.env --restart always --name mye
``` ```
On Linux host, bind-mount the .env to the container: On Linux host, bind-mount the .env to the container:
```bash ```bash
docker run -d -v /myems-modbus-tcp/.env:/.env --restart always --name myems-modbus-tcp myems/myems-modbus-tcp docker run -d -v /myems-modbus-tcp/.env:/code/.env --restart always --name myems-modbus-tcp myems/myems-modbus-tcp
``` ```
* -d Run container in background and print container ID * -d Run container in background and print container ID

View File

@ -68,7 +68,7 @@ docker run -d -v c:\myems-normalization\.env:/code/.env --restart always --name
``` ```
On Linux host, bind-mount the .env to the container: On Linux host, bind-mount the .env to the container:
```bash ```bash
docker run -d -v /myems-normalization/.env:/.env --restart always --name myems-normalization myems/myems-normalization docker run -d -v /myems-normalization/.env:/code/.env --restart always --name myems-normalization myems/myems-normalization
``` ```
* -d Run container in background and print container ID * -d Run container in background and print container ID