2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 13:46:54 +00:00

Update docker_prod.md

Add explicit warning for serving static and media files in production.

Ref: https://github.com/inventree/InvenTree/issues/1883
This commit is contained in:
Oliver 2021-07-30 10:42:38 +10:00 committed by GitHub
parent 8d5647c839
commit 04c02e5985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,9 @@ title: Docker Production Server
Using the [InvenTree docker image](./docker.md) streamlines the setup process for an InvenTree 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 ## Docker Compose
It is strongly recommended that you use a [docker-compose](https://docs.docker.com/compose/) script to manage your InvenTree docker image. It is strongly recommended that you use a [docker-compose](https://docs.docker.com/compose/) script to manage your InvenTree docker image.