@@ -52,7 +52,7 @@ func (eb *envBuilder) build() []string {
52
52
}
53
53
54
54
func dockerComposeBuild (options Options ) error {
55
- c , err := compose .NewProject (DockerComposeProjectName , options .Profile .Path (profileStackPath , SnapshotFile ))
55
+ c , err := compose .NewProject (DockerComposeProjectName ( options . Profile ) , options .Profile .Path (profileStackPath , SnapshotFile ))
56
56
if err != nil {
57
57
return fmt .Errorf ("could not create docker compose project: %w" , err )
58
58
}
@@ -78,7 +78,7 @@ func dockerComposeBuild(options Options) error {
78
78
}
79
79
80
80
func dockerComposePull (options Options ) error {
81
- c , err := compose .NewProject (DockerComposeProjectName , options .Profile .Path (profileStackPath , SnapshotFile ))
81
+ c , err := compose .NewProject (DockerComposeProjectName ( options . Profile ) , options .Profile .Path (profileStackPath , SnapshotFile ))
82
82
if err != nil {
83
83
return fmt .Errorf ("could not create docker compose project: %w" , err )
84
84
}
@@ -104,7 +104,7 @@ func dockerComposePull(options Options) error {
104
104
}
105
105
106
106
func dockerComposeUp (options Options ) error {
107
- c , err := compose .NewProject (DockerComposeProjectName , options .Profile .Path (profileStackPath , SnapshotFile ))
107
+ c , err := compose .NewProject (DockerComposeProjectName ( options . Profile ) , options .Profile .Path (profileStackPath , SnapshotFile ))
108
108
if err != nil {
109
109
return fmt .Errorf ("could not create docker compose project: %w" , err )
110
110
}
@@ -136,7 +136,7 @@ func dockerComposeUp(options Options) error {
136
136
}
137
137
138
138
func dockerComposeDown (options Options ) error {
139
- c , err := compose .NewProject (DockerComposeProjectName , options .Profile .Path (profileStackPath , SnapshotFile ))
139
+ c , err := compose .NewProject (DockerComposeProjectName ( options . Profile ) , options .Profile .Path (profileStackPath , SnapshotFile ))
140
140
if err != nil {
141
141
return fmt .Errorf ("could not create docker compose project: %w" , err )
142
142
}
@@ -182,10 +182,10 @@ func withIsReadyServices(services []string) []string {
182
182
return allServices
183
183
}
184
184
185
- func dockerComposeStatus () ([]ServiceStatus , error ) {
185
+ func dockerComposeStatus (options Options ) ([]ServiceStatus , error ) {
186
186
var services []ServiceStatus
187
187
// query directly to docker to avoid load environment variables (e.g. STACK_VERSION_VARIANT) and profiles
188
- containerIDs , err := docker .ContainerIDsWithLabel (projectLabelDockerCompose , DockerComposeProjectName )
188
+ containerIDs , err := docker .ContainerIDsWithLabel (projectLabelDockerCompose , DockerComposeProjectName ( options . Profile ) )
189
189
if err != nil {
190
190
return nil , err
191
191
}
0 commit comments