Code samples for my 2016 Codemotion talk: Docker for Startups and Teams
The task folders contain both the final solution and the steps needed. Simple! :)
Showing through with exemplification the benefits of building your proyect or product using Docker
- Easy to integrate other stuff
- Replicate production setup in development
- Easy to share shame environment with peers
- Fuck up proof: easy to clean and regenerate
- Unified interface for executing (run), updating (pull) and stoping
- Focus on your app, reuse everything
docker-compose upcreates and starts the stack. Use-dto run in background.docker-compose downdestroys the stack. Use-vto also delete volumes.docker-compose log [service]shows the log of a service. No service logs all. Use-ffor following.docker-compose psshows the state of the active containers in the stack.