Quick glimpse at Docker Compose

Last week the Overview of Docker Compose came to my attention and I was lucky enough to get the change to try it out in my daily work today.

Let's install docker-compose with Install on Ubuntu. We used Ubuntu Server 15.10 (Wily Werewolf)...

$ sudo apt-get install python-pip
$ sudo pip install docker-compose

and verify the installation afterwards:

$ docker-compose --version

The Getting Started is a nice a easy way to get your hands dirty and a first impression of docker-compose. After a few preparation steps you are ready to run your sample app configured via a YAML file called docker-compose.yml:

$ docker-compose up
redis_1 | 1:M 17 Nov 12:44:55.885 * The server is now ready to accept connections on port 6379
web_1   |  * Restarting with stat
web_1   |  * Debugger is active!
web_1   |  * Debugger pin code: 105-865-067

Open your browser and point it to http://localhost:5000 to view the sample application in action:

Hello World! I have been seen 1 times.

Nice. I'm really looking forward creating a planets-compose.yml...

For detailed information please look at the Compose CLI reference and Compose file reference.

Show Comments