From: Lorin Hochstein Date: Wed, 25 Jan 2017 06:22:46 +0000 (-0800) Subject: More docker progress X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=9b86a42aef9e3c3122ee2fe23c8619692a4861c4;p=ansiblebook.git More docker progress --- diff --git a/ch13/ansible/container.yml b/ch13/ansible/container.yml index c4ef1d6..546082b 100644 --- a/ch13/ansible/container.yml +++ b/ch13/ansible/container.yml @@ -4,12 +4,15 @@ services: image: ubuntu:xenial expose: - "11211" + entrypoint: [memcached] + command: ["-m", "128"] + user: daemon nginx: image: nginx:1.11 mezzanine: image: ubuntu:xenial - command: [/usr/local/bin/gunicorn, '0.0.0.0:8000', 'mezzanine_example.wsgi:application'] entrypoint: [/srv/bin/entrypoint.sh] + command: [/usr/local/bin/gunicorn, '0.0.0.0:8000', 'mezzanine_example.wsgi:application'] working_dir: /srv/project expose: - "8000" diff --git a/ch13/ansible/roles/mezzanine/tasks/main.yml b/ch13/ansible/roles/mezzanine/tasks/main.yml index cae7a7f..be79a75 100644 --- a/ch13/ansible/roles/mezzanine/tasks/main.yml +++ b/ch13/ansible/roles/mezzanine/tasks/main.yml @@ -20,6 +20,10 @@ synchronize: src: "{{ lookup('pipe', 'dirname `pwd`') }}/mezzanine_example/" dest: /srv/project +- name: create /srv/bin directory + file: + path: /srv/bin + state: directory - name: copy scripts copy: src: "{{ role_path }}/files/{{ item }}"