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

variables in fig.yml #426

Closed
josh-devops-center opened this issue Aug 21, 2014 · 9 comments
Closed

variables in fig.yml #426

josh-devops-center opened this issue Aug 21, 2014 · 9 comments

Comments

@josh-devops-center
Copy link

Hi,

Would it be possible to support variables in the fig.yml ? For example, I would like to define the name of the volume paths at runtime when I start fig.

Thanks

@blackrosezy
Copy link

Is it something like this?:

var:
  MY_PASS: abc123

web:
  image: my_web
  environment:
    MYSQL_PASS: $MY_PASS
  links:
    - db
db:
  image: my_db
  environment:
    MYSQL_PASS: $MY_PASS

If yes, then +1 for this idea.

@dnephin
Copy link

dnephin commented Sep 5, 2014

Host path for volumes now supports environment variables using https://docs.python.org/2/library/os.path.html#os.path.expandvars

@josh-devops-center
Copy link
Author

@blackrosezy yup

@alguevara7
Copy link

+1

2 similar comments
@maskwang
Copy link

+1

@saks
Copy link

saks commented Dec 20, 2014

+1

@relwell
Copy link

relwell commented Jan 7, 2015

Can we merge this one with #495?

@josh-devops-center
Copy link
Author

ok sounds good

@bfirsh
Copy link

bfirsh commented Jul 21, 2015

Also see: #1377

xulike666 pushed a commit to xulike666/compose that referenced this issue Jan 19, 2017
snapshots: separate implementations into packages
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

No branches or pull requests

9 participants