2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 18:45:40 +00:00

Docker tweaks (#9738)

* Tweak docker compose file

* Tweak docs

* Cleanup docker-compose file
This commit is contained in:
Oliver
2025-06-05 15:08:51 +10:00
committed by GitHub
parent 71abd489ae
commit a63efc4089
2 changed files with 12 additions and 14 deletions

View File

@ -32,6 +32,12 @@
# INVENTREE_TAG=0.7.5
#
# ----------------------------
# Docker compose customization
# ----------------------------
# If you wish to customize the docker-compose script, you should only do so if you understand the stack!
# Do not expect support for customizations that are not part of the standard InvenTree setup!
services:
# Database service
# Use PostgreSQL as the database backend
@ -114,17 +120,3 @@ services:
- ${INVENTREE_EXT_VOLUME}:/var/log:z
- ${INVENTREE_EXT_VOLUME}:/data:z
- ${INVENTREE_EXT_VOLUME}:/config:z
# alternative: run nginx as reverse proxy
# inventree-proxy:
# container_name: inventree-proxy
# image: nginx:stable
# restart: always
# depends_on:
# - inventree-server
# ports:
# - ${INVENTREE_WEB_PORT:-80}:80
# - 443:443
# volumes:
# - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro,z
# - ${INVENTREE_EXT_VOLUME}:/var/www:z

View File

@ -141,3 +141,9 @@ When configuring a docker install, sometimes a misconfiguration can cause peculi
If you have previously setup InvenTree, remove existing volume bindings using the following command:
```docker volume rm -f inventree-production_inventree_data```
## Docker Compose Customization
We provide a default `docker-compose.yml` file, which can be used to run InvenTree in production mode. This should be sufficient for most users.
If you wish to customize the docker compose setup, you can do so by modifying the `docker-compose.yml` file. However, please note that we cannot provide support for custom docker compose configurations. If you choose to customize the setup, you are responsible for ensuring that it works correctly!