Use env-variable for image tag (#3350)

This commit is contained in:
Matthias Mair 2022-07-18 01:09:04 +02:00 committed by GitHub
parent 6aeb818137
commit 7549d033df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -42,4 +42,7 @@ INVENTREE_CACHE_PORT=6379
# Enable plugins?
INVENTREE_PLUGINS_ENABLED=False
# Image tag that should be used
INVENTREE_TAG=stable
COMPOSE_PROJECT_NAME=inventree-production

View File

@ -74,7 +74,7 @@ services:
inventree-server:
container_name: inventree-server
# If you wish to specify a particular InvenTree version, do so here
image: inventree/inventree:stable
image: inventree/inventree:${INVENTREE_TAG:-stable}
expose:
- 8000
depends_on:
@ -91,7 +91,7 @@ services:
inventree-worker:
container_name: inventree-worker
# If you wish to specify a particular InvenTree version, do so here
image: inventree/inventree:stable
image: inventree/inventree:${INVENTREE_TAG:-stable}
command: invoke worker
depends_on:
- inventree-server