Imagine proposing a session on “What’s new in Notepad”! Why would anyone want to know about such a common tool that everyone knows? The same should could be said about docker and docker-compose. They are standard development tools we find in any dev shop. So why does docker-compose seem so elusive? Its simple:
- Compose is a tool for defining and running multi-container Docker applications.
- With Compose, you use a YAML file to configure your application’s services.
- Then, with a single command, you create and start all the services from your configuration. Join me as we demo using Compose via your favourite frameworks.
2. Meet Rory
• Developer in R&D team at BBD
– Training for 700 Developers
– Most Languages & Frameworks
• Organizer for the Java and AWS User groups
• Not related to Tyrion Lannister
• Don’t do kids parties
@rorypreddy
3.
4.
5. State Of the Docker Nation
•Docker CE and EE
•Compose 3
•EKS and AKS
•Docker 18
8. Spring Boot: Docker image
• Install Java
• Install application JAR file
• Configure image to run Java on start-up
• Handle externalized configuration
19. What is Docker Compose?
• Define and run multi-container applications
• Specify images and configuration in a simple
YAML file:
docker-compose.yml
• One command to get it all running:
$ docker-compose up
20. What is Docker Compose?
docker-compose up:
• Builds images from Dockerfiles
• Pulls images from registries
• Creates and starts containers
• Streams their logs
21.
22. What is Docker Compose?
Make your development environments:
• Repeatable
• Isolated
• Fast