compose/pkg/e2e/testdata/TestComposeRunInheritsAnonymousVolumes/compose.yaml
hiroto.toyoda 412515250a fix(run): keep a recreated dependency's anonymous volumes
Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com>
2026-10-20 11:54:18 +02:00

18 lines
497 B
YAML

services:
task:
image: alpine
command: echo "task done"
depends_on:
- dep
dep:
image: alpine
init: true
command: sleep infinity
volumes:
# anonymous volume: no source, so it lives and dies with the container
# unless carried over on recreate
- /data
environment:
# divergence vector: changing TAG between invocations changes the
# config-hash of dep, which the default policy answers by recreating
TAG: ${TAG:-initial}