File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
packages/docker-compose/src/manifests Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @anymodel/docker-compose " : patch
3+ ---
4+
5+ Fix ` ServiceVolume ` without source
Original file line number Diff line number Diff line change @@ -114,6 +114,11 @@ export class Service {
114114 typeof v === "string" ? v : v . join ( ":" )
115115 ) ,
116116 } ) ,
117+ ...( this . spec . volumes && {
118+ volumes : this . spec . volumes . filter (
119+ ( v ) => typeof v === "string" || v . source !== false
120+ ) ,
121+ } ) ,
117122 ...( this . spec . volumes_from && {
118123 volumes_from : this . spec . volumes_from . map ( resolveName ) ,
119124 } ) ,
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export class ServiceVolume {
4242 }
4343 }
4444 toJSON ( ) {
45- return `${ this . source } :${ this . target } ${ this . readOnly ? `:ro` : "" } ` ;
45+ const source = resolveSource ( this . source )
46+ return `${ source } :${ this . target } ${ this . readOnly ? `:ro` : "" } ` ;
4647 }
4748}
You can’t perform that action at this time.
0 commit comments