Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix list like environments attribute #19348

Closed
wants to merge 1 commit into from
Closed

Conversation

lnksz
Copy link

@lnksz lnksz commented Feb 8, 2024

Proposed changes

envrionments attribute is a mapping not a list

Related issues (optional)

See caused confusion docker/compose#1171 (comment)

envrionments attribute is a mapping not a list

See caused confusion docker/compose#1171 (comment)
Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 9cbcc17
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/65c4c39e0393570008eddee7
😎 Deploy Preview https://deploy-preview-19348--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Feb 8, 2024
@thaJeztah
Copy link
Member

Comment on lines 67 to +68
environment:
- DEBUG=${DEBUG}
DEBUG=${DEBUG}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look valid. There's no colon delimiter for the map key/value, so this would be interpreted as a string.

@lnksz
Copy link
Author

lnksz commented Feb 8, 2024

It should support both?; https://docs.docker.com/compose/compose-file/05-services/#environment
Screenshot 2024-02-08 at 13 11 01

Thanks! My bad, I blindly believed

I've this config that works, you have defined your environment variables as array is the issue

from docker/compose#1171 (comment)

@lnksz lnksz closed this Feb 8, 2024
@lnksz
Copy link
Author

lnksz commented Feb 8, 2024

Added my observation/question rather here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants