faradayio / cage

Develop and deploy complex Docker applications
http://cage.faraday.io
Apache License 2.0
307 stars 26 forks source link

canonical examples are pathological #45

Open seamusabshere opened 7 years ago

seamusabshere commented 7 years ago

all the pretty tree views in the docs only show 1 service - frontend

it would be illuminating to

  1. have a few more
  2. have names that indicate they are specific to your project and not canonical - "alice", "bob" instead of "frontend"
  3. have a couple canonically named placeholders - postgres (or db), redis
emk commented 7 years ago

We could add more complicated examples in the docs. We have a full set of examples in the examples folder, for example, showing off many variations of how to use cage.

But I'd like to keep the output of cage new as simple as possible, and focusing on getting people to run cage new foo; cd foo; cage up --init as soon as possible. Thoughts?

emk commented 7 years ago

Does Rails pretty much assume a Redis server by default these days, for example? If so, we could rename db to placeholders and add a redis pod.

Many cage projects will be small, in the real world, at least at first.

seamusabshere commented 7 years ago

err... rename db to placeholders?

i would say the minimum rails app these days is:

emk commented 7 years ago

If we're going to provide both db and redis in the default code skeleton, then we should place them both in a single file named pods/placeholders.yml or something like that, instead of making more single-server pods, or putting redis in db.