# See the License for the specific language governing permissions and
# limitations under the License.
-FROM debian:stable
+FROM debian:wheezy
MAINTAINER Guillaume Pellerin <yomguy@parisson.com>, Thomas fillon <thomas@parisson.com>
datadb:
- image: debian:stable
+ image: debian:wheezy
volumes:
- /var/lib/postgresql
command: /bin/true
-datastatic:
- image: debian:stable
+datamedia:
+ image: debian:wheezy
volumes:
- - /var/www
+ - /media
command: /bin/true
+datastatic:
+ image: debian:wheezy
+ volumes:
+ - /var/www/static
+ command: true
+
datalog:
- image: debian:stable
+ image: debian:wheezy
volumes:
- /var/log/nginx
- /var/log/postgres
volumes:
- ./examples/deploy/nginx/sites-enabled/app.conf:/etc/nginx/conf.d/default.conf
- /media
- - ./examples/deploy/static/:/var/www/static
+ #- ./examples/deploy/static/:/var/www/static
+ volumes_from:
+ - datastatic
+ - datamedia
links:
- app
build: .
volumes:
- .:/opt/TimeSide
- - ./examples/deploy/static/:/var/www/static
+ #- ./examples/deploy/static/:/var/www/static
+ volumes_from:
+ - datastatic
+ - datamedia
command: /opt/TimeSide/examples/sandbox/manage.py collectstatic
command: uwsgi --socket :8000 --wsgi-file /opt/TimeSide/examples/sandbox/wsgi.py --chdir /opt/TimeSide/examples/sandbox/ --master --processes 4 --threads 2
expose:
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
-
+
+ # Django media
+ location /media {
+ alias /media; # your Django project's media files - amend as required
+ }
# Django static
location /static {
alias /var/www/static; # your Django project's static files - amend as required