Hi there,
my docker-compose.yml is like this:
version: "3"
services:
myservice:
build: ./mycode
volumes:
- ./logs:/data/log
ports:
- "80:80"
tmpfs:
- /exampledir
that works. i'd like to specify the tmpfs size. There is a parameter in the Engine that is called as tmpfs-size *
I just had a look into the Docker Compose's instruction **. I didn't see such as parameter.
How can i set the tmpfs size through through the docker-compose.yml file? Is there a way to do it?
: https://docs.docker.com/engine/admin/volumes/tmpfs/#specify-tmpfs-options
*: https://docs.docker.com/compose/compose-file/#tmpfs
This isn't possible currently, but we'll add it on the TODO list. Thanks!
This is now possible with the mountpoint:options syntax:
...
tmpfs:
- /tmp:size=1G
I found this in #3339. In the near future, it will also be possible with the long syntax, see #5637.
@adililhan can you please close this issue?
Is there a way to set default permissions this way?
e.g. let a non-root user use it.
Most helpful comment
This is now possible with the
mountpoint:optionssyntax:I found this in #3339. In the near future, it will also be possible with the long syntax, see #5637.