APItools / monitor

Track, transform and analyze the traffic between your app and the APIs you use.
https://www.apitools.com
MIT License
140 stars 23 forks source link

Contribute fig.yml to launch APITools and Redis #17

Closed mingfang closed 9 years ago

mingfang commented 9 years ago

Below is a small fig.yml that I use to launch APITools and Redis. Hope it can help others get started more quickly(assuming they already have fig installed).

apitools:
  image: quay.io/3scale/apitools
  ports:
    - "7071:7071"
    - "10002:10002"
  links:
    - redis:db

redis:
  image: redis
mikz commented 9 years ago

That would be the production config, yes. Isn't fig meant more for development?

We have a Makefile that helps building the development docker containers and you can run it by docker bash. I don't see why we could not provide fig.yml. But I need to know what it should do. Should it be production environment? Then it does not have to be in the repo. Should it be development? Then you don't need fig.

mingfang commented 9 years ago

This fig file was meant for development and quick evaluation purpose. It is not strictly needed but I thought it can help someone get started quickly.

mikz commented 9 years ago

I'll document it and do it with our Makefile then. And evaluate if fig would add a benefit.

mikz commented 9 years ago

@mingfang I just merged #26 which adds fig.yml It does more than just our Makefile, like it starts statsd with grafana to show internal metrics.

However starting the environment installs some gems, so it is slower than I would want. Improvements welcomed.