Skip to content

Fix env_file variable parsing on Compose file#120

Merged
Cyb3rDudu merged 1 commit into
Mcrich23:mainfrom
nvsofts:change-env_file
Jun 29, 2026
Merged

Fix env_file variable parsing on Compose file#120
Cyb3rDudu merged 1 commit into
Mcrich23:mainfrom
nvsofts:change-env_file

Conversation

@nvsofts

@nvsofts nvsofts commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

In env_file, the current Container-Compose implemantion only supports list syntax.
Therefore it rejects following Compose.

services:
  app:
    image: alpine:latest
    env_file: app.env

According to The Compose Specification, env_file supports both string and list syntax.
https://github.com/compose-spec/compose-spec/blob/main/spec.md#env_file

This PR fixes env_file parsing in Compose file.

@Cyb3rDudu Cyb3rDudu self-requested a review June 29, 2026 10:14
@Cyb3rDudu Cyb3rDudu self-assigned this Jun 29, 2026
@Cyb3rDudu Cyb3rDudu merged commit 2ffe1e6 into Mcrich23:main Jun 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants