Compose file version 2 reference | docker compose volume path
ImportantDockersdocumentationreferstoanddescribesComposeV2functionality.EffectiveJuly2023,ComposeV1stoppedreceivingupdatesandisnolongerinnewDockerDesktopreleases.ComposeV2hasreplaceditandisnowintegratedintoallcurrentDockerDesktopversions.Formoreinformation,seeMigratetoComposeV2[1].Thesetopicsdescribeversion2oftheComposefileformat.ThereareseveralversionsoftheComposefileformat–1,2,2.x,and3.x.Thetablebelowisaquicklook.Forfulldetailsonwhateachversionincludesandhowtoupgrade,seeAboutversionsandupg...
Important
Dockers documentation refers to and describes Compose V2 functionality.
Effective July 2023, Compose V1 stopped receiving updates and is no longer in new Docker Desktop releases. Compose V2 has replaced it and is now integrated into all current Docker Desktop versions. For more information, see Migrate to Compose V2[1].
These topics describe version 2 of the Compose file format.
There are several versions of the Compose file format – 1, 2, 2.x, and 3.x. The table below is a quick look. For full details on what each version includes and how to upgrade, see About versions and upgrading[2].
This table shows which Compose file versions support specific Docker releases.
Compose file formatDocker Engine releaseCompose specification19.03.0+3.819.03.0+3.718.06.0+3.618.02.0+3.517.12.0+3.417.09.0+3.317.06.0+3.217.04.0+3.11.13.1+3.01.13.0+2.417.12.0+2.317.06.0+2.21.13.0+2.11.12.0+2.01.10.0+In addition to Compose file format versions shown in the ta...