mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-03 19:16:10 +00:00
volumes.md - remove image with yaml (#6593)
This commit is contained in:
parent
3d93aaad53
commit
3ea1f7845b
@ -7,7 +7,23 @@ Named volumes can persist data after we restart or remove a container. Also, it
|
||||
|
||||
For example:
|
||||
|
||||
<Image src="/images/deployment/docker/example-volumes.png" alt="volumes"/>
|
||||
```yaml
|
||||
version: 3.8
|
||||
services:
|
||||
db:
|
||||
image:mysql
|
||||
restart:always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: root
|
||||
MYSQL_DATABASE: test_db
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
volumes:
|
||||
db_data
|
||||
```
|
||||
|
||||
|
||||
Here, the first field is a unique name of the volume on a host machine. The second field is the path in the container.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user