-datadb:
- image: debian:wheezy
- volumes:
- - /var/lib/postgresql
- command: /bin/true
-
-datamedia:
+media:
image: debian:wheezy
volumes:
- ./examples/sandbox/media:/media
command: /bin/true
-datastatic:
+static:
image: debian:wheezy
volumes:
- /var/www/static
command: true
-datalog:
+log:
image: debian:wheezy
volumes:
- /var/log/nginx
- /var/log/postgres
+ - /var/log/uwsgi
command: /bin/true
-db:
- image: postgres
- volumes_from:
- - datadb
+# datadb:
+# image: debian:wheezy
+# volumes:
+# - /var/lib/postgresql
+# command: /bin/true
+
+# db:
+# image: postgres
+# volumes_from:
+# - datadb
nginx:
image: nginx
volumes:
- ./examples/deploy/nginx/sites-enabled/app.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- - datastatic
- - datamedia
+ - static
+ - media
+ - log
links:
- app
volumes:
- .:/opt/TimeSide
volumes_from:
- - datastatic
- - datamedia
+ - static
+ - media
+ - log
command: /bin/sh /opt/TimeSide/examples/deploy/start_app.sh
expose:
- "80" #default runserver wsgi port
\ No newline at end of file