Added docker compose file and docker volume references into python de… (#12739)

* Added docker compose file and docker volume references into python develop.md

* Style update

Co-authored-by: Cathy Huang <my-email@example.com>
Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
syunwei 2021-05-06 16:00:16 +10:00 committed by GitHub
parent 34c3f97dd2
commit 1c1a9a094e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ $ docker network create mysqlnet
```
Now we can run MySQL in a container and attach to the volumes and network we created above. Docker pulls the image from Hub and runs it for you locally.
In the following command, option `-v` is for starting the container with volumes. For more information, see [Docker volumes](../../storage/volumes.md).
```shell
$ docker run --rm -d -v mysql:/var/lib/mysql \
@ -181,7 +182,7 @@ You should receive the following JSON back from our service.
## Use Compose to develop locally
In this section, well create a Compose file to start our python-docker and the MySQL database using a single command. Well also set up the Compose file to start the `python-docker` application in debug mode so that we can connect a debugger to the running process.
In this section, well create a [Compose file](../../compose/index.md) to start our python-docker and the MySQL database using a single command. Well also set up the Compose file to start the `python-docker` application in debug mode so that we can connect a debugger to the running process.
Open the `python-docker` code in your IDE or a text editor and create a new file named `docker-compose.dev.yml`. Copy and paste the following commands into the file.