docker-compose

I have started to use docker-compose and I really like it.

Some notes :

  1. It is easy to install. I used this (on CentOS 7):
    $ sudo -i
    # curl -L https://github.com/docker/compose/releases/download/1.9.0-rc2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
    # chmod +x /usr/local/bin/docker-compose
  2. selinux
    I have to disable it on CentOS otherwise haproxy doesn’t forward to containers listening on ports TCP/8000+. I run:

    $ sudo -i
    # sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
    # cat /etc/sysconfig/selinux

Next up, I will document how to automate this with ansible.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s