I have a data-container (data-html) that have static site files here:
$ ls -la
drwxr-xr-x 5 root root 4096 Apr 21 13:56 . drwxr-xr-x 3 root root 4096 Apr 21 13:56 .. drwxr-xr-x 2 root root 4096 Apr 21 13:56 css drwxr-xr-x 3 root root 4096 Apr 21 13:56 images -rwxr-xr-x 1 root root 2794 Apr 21 13:56 index.html drwxr-xr-x 2 root root 4096 Apr 21 13:56 js
Life is good.
Now I my main compose V2 file I have a nginx container that serves static content. here is my compose file: https://gist.github.com/pascalandy/215d4e99895c71cb541ca7ab7c7ef63c
I’m confused about how to use volumes_from:
I feel there should be 3 values here:
- container source (data-html)
- path from the container’s source (/data/extracted-html)
- path from the container’s destination (/usr/share/nginx/html)
The docs at https://docs.docker.com/compose/compose-file/#volumes-from seems too simplistic to help me understand. Any cues?