1

I'm using Fig (and Docker) to set up my dev environment.

One of the services that I have configured is Adminer, which is a lightweight web database client. I need it for development, but don't want it running in production. How can I do that? A solution for Fig (preferable) or Docker will do.

Here's a part of my fig.yml:

db:
  image: postgres
adminer:
  image: clue/adminer
  links:
    - db
  ports:
    - "8081:80"

1 Answer 1

2

You could use multiple fig files. Fig uses fig.yml by default, but you can specify with the -f flag. Docs.

Thus, whatever you want your default to be could be fig.yml. Then, you could have fig-dev.yml (for example) for your development environment. Use fig -f fig-dev.yml up when using that one.

1
  • I like this, I'll take this one if there aren't any DRYer methods :).
    – duality_
    Jan 2, 2015 at 18:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.