More docker progress
authorLorin Hochstein <lhochstein@netflix.com>
Wed, 25 Jan 2017 06:22:46 +0000 (22:22 -0800)
committerLorin Hochstein <lhochstein@netflix.com>
Wed, 25 Jan 2017 06:22:46 +0000 (22:22 -0800)
ch13/ansible/container.yml
ch13/ansible/roles/mezzanine/tasks/main.yml

index c4ef1d6..546082b 100644 (file)
@@ -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"
index cae7a7f..be79a75 100644 (file)
   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 }}"