]> git.parisson.com Git - timeside.git/commitdiff
Docker-compose: Update static files management
authorThomas Fillon <thomas@parisson.com>
Tue, 3 Mar 2015 00:05:37 +0000 (01:05 +0100)
committerThomas Fillon <thomas@parisson.com>
Tue, 3 Mar 2015 00:05:37 +0000 (01:05 +0100)
docker-compose.yml

index 023cdbe4e9f25253f70058964ad107d480cac7a4..daa3536f6feb813a78cf68bfdef527fae7e0848e 100644 (file)
@@ -29,9 +29,7 @@ nginx:
   volumes:
     - ./examples/deploy/nginx/sites-enabled:/etc/nginx/sites-enabled
     - /media
-  volumes_from:
-    - datastatic
-    - datalog
+    - ./examples/deploy/static/:/var/www/static
   links:
     - app
 
@@ -39,8 +37,8 @@ app:
   build: .
   volumes:
     - .:/opt/TimeSide
-  volumes_from:
-    - datastatic
+    - ./examples/deploy/static/:/var/www/static
+  command: /opt/TimeSide/examples/sandbox/manage.py collectstatic
   command: uwsgi --ini /opt/TimeSide/examples/sandbox/uwsgi.ini:local
   ports:
     - "8000:8000"