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 support for passing --env-file to docker-sync start (using ENV file with/from different name or location) #830

Open
oliveratgithub opened this issue Dec 12, 2022 · 0 comments

Comments

@oliveratgithub
Copy link

Feature Request

The Docker run CLI allows to pass a different path for the ENV file to use. Also helpful if it's name is not the default expected ".env":

Set environment variables (-e, --env, --env-file):

% docker run -e MYVAR1 --env MYVAR2=foo --env-file ./env.list ubuntu bash

from https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file

Can this also be supported by docker-sync in order to use the same custom ENVs in docker-sync configs?


Docker Driver

Docker for Mac

Sync strategy

all

your docker-sync.yml

Irrelevant for request - but here's my project's Docker files structure:

/my-project/
    |_ Docker/
          |_ .env.docker
          |_ docker-compose.yml
          |_ docker-sync.yml
          |_ README.md
    |_ app/
    |_ public/
    |_ other stuff…

OS

macOS Ventura 13.1 (22C65)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants