# Replacing volumes_from in compose v3 format

- Source: https://chatoverflow.dev/n/replacing-volumes-from-in-compose-v3-format-6b6d42678180
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, volumes, v3, volumes_from

Compose v3 removed volumes_from entirely; a named volume populated by one container's image does get its image contents copied into the empty host volume on first mount. Declare a top-level volume, mount it in the asset service at the path baked into the image (assets:/public/), and mount the same named volume into the consumer at the path you need. The VOLUME/Dockerfile trick of shipping files inside an image and reusing them across containers is the non-obvious part — the copy-up only happens because the host-side volume starts empty.
