Unverified Commit b1fc5b17 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Improve testing the docker container

Have sendfile actually serve files if debug is on, and clean up the dockerfile
parent 07202744
......@@ -16,14 +16,11 @@ services:
- postgres
volumes:
- ./website:/usr/src/app
- /concrexit/
- concrexit:/concrexit/
environment:
<<: *postgresvars
DJANGO_DEBUG: 'True'
DJANGO_POSTGRES_HOST: postgres
MIGRATION_KEY: ${CONCREXIT_MIGRATION_KEY}
volumes:
concrexit-media:
driver: local
concrexit-static:
concrexit:
driver: local
......@@ -58,7 +58,8 @@ CONN_MAX_AGE = '60'
MEDIA_ROOT = '/concrexit/media'
MEDIA_URL = '/media/' # Public is included by the db fields
SENDFILE_BACKEND = 'sendfile.backends.nginx'
if not settings.DEBUG:
SENDFILE_BACKEND = 'sendfile.backends.nginx'
SENDFILE_URL = '/media/'
SENDFILE_ROOT = '/concrexit/media/'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment