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

Allow environment variable in ports defining section #569

Closed
lucasvc opened this issue Oct 21, 2014 · 2 comments
Closed

Allow environment variable in ports defining section #569

lucasvc opened this issue Oct 21, 2014 · 2 comments

Comments

@lucasvc
Copy link

lucasvc commented Oct 21, 2014

In fig.yml you can pass some environment variables to docker hosts, using environment section. But in ports section you can't reuse those variables, so a replace should be done before executing fig file. Following first example, would be nice to do:

web:
  build: .
  command: python app.py
  links:
   - db
  environment:
   - OUTPUT_PORT
  ports:
   - "$OUTPUT_PORT:8000"
db:
  image: postgres

So executor and container know each other the port value, without having replace any content.

@lucasvc lucasvc changed the title Allos environment variable in ports defining section Allow environment variable in ports defining section Oct 21, 2014
@nubs
Copy link

nubs commented Oct 21, 2014

This looks related to #564.

@dnephin
Copy link

dnephin commented Nov 9, 2014

Closing, discussion can continue in #564

@dnephin dnephin closed this as completed Nov 9, 2014
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

3 participants