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.
Avatar
Lydéric Landry
écrivain et éditeur

Après plusieurs vies, j'écris maintenant