Skip to content

Commit

Permalink
docs: explain tmpfs mount options
Browse files Browse the repository at this point in the history
  • Loading branch information
sheeeng committed Nov 26, 2019
1 parent a3210b4 commit c909ff4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions compose/compose-file/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1886,8 +1886,11 @@ expressed in the short form.
- `volume`: configure additional volume options
- `nocopy`: flag to disable copying of data from a container when a volume is
created
- `tmpfs`: configure additional tmpfs options
- `size`: the size for the tmpfs mount in bytes
- `tmpfs`: configure additional tmpfs options.

The supported mount options are the same as the Linux default mount flag. If you do not specify any options, the system uses the default `rw,noexec,nosuid,nodev,size=65536k` options.

- `size`: the size for the tmpfs mount in bytes.
- `consistency`: the consistency requirements of the mount, one of `consistent` (host and container have identical view), `cached` (read cache, host view is authoritative) or `delegated` (read-write cache, container's view is authoritative)

```yaml
Expand All @@ -1906,6 +1909,8 @@ services:
- type: bind
source: ./static
target: /opt/app/static
tmpfs:
- /tempFiles:exec,mode=777,size=1G,uid=104,gid=107

networks:
webnet:
Expand Down

0 comments on commit c909ff4

Please sign in to comment.