Skip to content

Commit

Permalink
vault backup: 2024-07-24 18:00:54
Browse files Browse the repository at this point in the history
Affected files:
content/.obsidian/plugins/recent-files-obsidian/data.json
content/.obsidian/workspace.json
content/mocs/Docker Volumes.md
  • Loading branch information
windsuzu committed Jul 24, 2024
1 parent c07ac20 commit 385ff82
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
8 changes: 4 additions & 4 deletions content/.obsidian/plugins/recent-files-obsidian/data.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"recentFiles": [
{
"basename": "Docker MOC",
"path": "mocs/Docker MOC.md"
},
{
"basename": "Docker Volumes",
"path": "mocs/Docker Volumes.md"
Expand All @@ -12,10 +16,6 @@
"basename": "docker-volumes",
"path": "attachments/docker-volumes.png"
},
{
"basename": "Docker MOC",
"path": "mocs/Docker MOC.md"
},
{
"basename": "docker run, create, start",
"path": "docker/cli-commands/docker run, create, start.md"
Expand Down
19 changes: 9 additions & 10 deletions content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
}
}
}
],
"currentTab": 1
]
}
],
"direction": "vertical"
Expand Down Expand Up @@ -115,7 +114,7 @@
"state": {
"type": "localgraph",
"state": {
"file": "mocs/Docker Volumes.md",
"file": "mocs/Docker MOC.md",
"options": {
"collapse-filter": true,
"search": "",
Expand Down Expand Up @@ -166,7 +165,7 @@
"state": {
"type": "outline",
"state": {
"file": "mocs/Docker Volumes.md"
"file": "mocs/Docker MOC.md"
}
}
},
Expand Down Expand Up @@ -207,7 +206,7 @@
"state": {
"type": "file-properties",
"state": {
"file": "mocs/Docker Volumes.md"
"file": "mocs/Docker MOC.md"
}
}
}
Expand All @@ -225,7 +224,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "mocs/Docker Volumes.md",
"file": "mocs/Docker MOC.md",
"linksCollapsed": false,
"unlinkedCollapsed": false
}
Expand All @@ -244,7 +243,7 @@
"state": {
"type": "backlink",
"state": {
"file": "mocs/Docker Volumes.md",
"file": "mocs/Docker MOC.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand Down Expand Up @@ -274,12 +273,12 @@
"cmdr:Obsidian Git: Create backup": false
}
},
"active": "23ad0837982646a2",
"active": "95017a766c5d9aea",
"lastOpenFiles": [
"docker/docker-compose/Docker Compose.md",
"mocs/Docker Volumes.md",
"attachments/docker-volumes.png",
"mocs/Docker MOC.md",
"docker/docker-compose/Docker Compose.md",
"attachments/docker-volumes.png",
"docker/cli-commands/docker run, create, start.md",
"docker/docker-compose/Docker Compose Commands.md",
"docker/cli-commands/docker build.md",
Expand Down
9 changes: 4 additions & 5 deletions content/mocs/Docker Volumes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
draft: false
date: 2024-07-24 00:55
date: 2024-07-24 17:30
tags:
- _tbd
- docker
Expand Down Expand Up @@ -28,7 +28,7 @@ docker run -p 3000:3000 -v $(pwd):/app wind/vite

## Docker compose

Another way to use volumes is through [[docker compose]].
Another way to use volumes is through [[docker compose]]. By specifying the `volumes` keyword under the service, you can easily assign volumes to the service.

```yml
services:
Expand All @@ -42,10 +42,9 @@ services:
- .:/app
```

For example, we specify `.:/app` in the volumes, which acts like `-v $(pwd):/app` in the `docker run` , mapping all the files to the `/app` folder in the container.




On the right side of the colon `:`, the `.` denotes the relative path of the host machine. On the left side, the `/app` denotes the `/app` folder in the container.

> [!info] References
> - [Docker and Kubernetes: The Complete Guide](https://www.udemy.com/course/docker-and-kubernetes-the-complete-guide)

0 comments on commit 385ff82

Please sign in to comment.