From 04c02e59858084232c5d648ff7c25da98d69dbbc Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 30 Jul 2021 10:42:38 +1000 Subject: [PATCH] Update docker_prod.md Add explicit warning for serving static and media files in production. Ref: https://github.com/inventree/InvenTree/issues/1883 --- docs/start/docker_prod.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/start/docker_prod.md b/docs/start/docker_prod.md index 3c72b86..9237e60 100644 --- a/docs/start/docker_prod.md +++ b/docs/start/docker_prod.md @@ -6,6 +6,9 @@ title: Docker Production Server Using the [InvenTree docker image](./docker.md) streamlines the setup process for an InvenTree production server. +!!! warning "Static and Media Files" + The sample docker-compose configuration shown on this page uses nginx to serve static files and media files. If you change this configuration, you will need to ensure that static and media files are served correctly. When running with `debug=False`, django *will not serve these files* - see the [django documentation](https://docs.djangoproject.com/en/dev/howto/static-files/). + ## Docker Compose It is strongly recommended that you use a [docker-compose](https://docs.docker.com/compose/) script to manage your InvenTree docker image.