I just read through the “AWS EFS — The Container Friendly File System” blog post, and that explained a lot! I actually didn’t realize that Convox was already mounting an EFS volume at /volumes
, so I already have a directory that is shared between all of the instances.
So if I use this format:
volumes:
- /var/lib/postgresql/data
Then Docker will create a new volume inside /volumes
by default.
So if I specify an explicit path outside of the /volumes
directory, then I guess this means I’m using EBS instead of EFS. E.g. something like:
volumes:
- /tmp/filecache:/tmp/filecache
UPDATE: Ahhhh, this doesn’t work. This creates a volume inside: /volumes/<myapp>/tmp/filecache
So it looks like I don’t have the option to mount a volume outside the /volumes
directory.