From 439839691a7154ddd6e58b81d5e7c282bad9e672 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Sun, 7 Apr 2019 19:29:53 +0200 Subject: Use volume for staticfiles. --- docker-compose.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a74b1140..04ec51de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,10 +28,14 @@ services: - postgres volumes: - .:/app:ro + - staticfiles:/var/www/static environment: DATABASE_URL: postgres://pysite:supersecretpassword@postgres/pysite DEBUG: "true" SECRET_KEY: suitable-for-development-only - STATIC_ROOT: /tmp/staticfiles + STATIC_ROOT: /var/www/static + +volumes: + staticfiles: # vim: sw=2 ts=2: -- cgit v1.2.3