Skip to content

Commit

Permalink
merge env files with Compose service env files
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiksi committed Sep 23, 2024
1 parent e523bb1 commit 6f63b67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ func (g *Generator) buildNixContainer(service types.ServiceConfig, networkMap ma
}

if g.IncludeEnvFiles {
c.EnvFiles = g.EnvFiles
// Append to service's existing env files.
c.EnvFiles = append(c.EnvFiles, g.EnvFiles...)
}
if !g.EnvFilesOnly {
c.Environment = composeEnvironmentToMap(service.Environment)
Expand Down

0 comments on commit 6f63b67

Please sign in to comment.