mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Fix relative paths on envfile label
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
41b3967cb5
commit
69e21d89f0
@ -169,7 +169,10 @@ func (o *projectOptions) toProject(services []string, po ...cli.ProjectOptionsFn
|
|||||||
|
|
||||||
ef := o.EnvFile
|
ef := o.EnvFile
|
||||||
if ef != "" && !filepath.IsAbs(ef) {
|
if ef != "" && !filepath.IsAbs(ef) {
|
||||||
ef = filepath.Join(project.WorkingDir, o.EnvFile)
|
ef, err = filepath.Abs(ef)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for i, s := range project.Services {
|
for i, s := range project.Services {
|
||||||
s.CustomLabels = map[string]string{
|
s.CustomLabels = map[string]string{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user