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

Add ability to use toml file instead of .env #10543

Open
deny-7 opened this issue May 9, 2023 · 1 comment
Open

Add ability to use toml file instead of .env #10543

deny-7 opened this issue May 9, 2023 · 1 comment
Labels
area/env .env and env_file kind/feature

Comments

@deny-7
Copy link

deny-7 commented May 9, 2023

Description

It would be great to add the ability to use a toml file instead of a regular .env, because toml provides much more functionality than a regular .env.

e.g.

services:
  web:
    image: ${toml.services.images}
    ports: ${toml.services.ports}
    env_file: 
       - ${toml.services.env}
  redis:
    image: ${toml.services.images}

TOML example

[services]

[services.web]
image = "nginx"
ports = { 80 = 80, 443 = 443 }
env = {somevar1 = someval1, somevar2 = someval2}

[services.redis]
image = "redis"
@ndeloof
Copy link
Contributor

ndeloof commented May 10, 2023

That's an interesting proposal, some thoughts:

@jhrotko jhrotko added area/env .env and env_file and removed status/0-triage labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/env .env and env_file kind/feature
Projects
None yet
Development

No branches or pull requests

3 participants