diff options
author | 2019-04-07 19:29:53 +0200 | |
---|---|---|
committer | 2019-04-07 19:29:53 +0200 | |
commit | 439839691a7154ddd6e58b81d5e7c282bad9e672 (patch) | |
tree | 357de17e94c547525c55cd47defca65b9ca9291a /docker-compose.yml | |
parent | Display some output about migrations. (diff) |
Use volume for staticfiles.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 6 |
1 files changed, 5 insertions, 1 deletions
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: |