Does APP_VERSION actually do anything? #19476
|
Specifically for the Docker version since this is in the "REQUIRED: DOCKER SPECIFIC SETTINGS" section of the |
Replies: 1 comment 1 reply
|
image: snipe/snipe-it:${APP_VERSION:-latest}So it controls which Docker image tag Compose pulls/runs when you use that compose file. If it is empty, Compose falls back to Once the container is running, the app version shown by Snipe-IT comes from the application code baked into the image, for example Practical rule:
If that answers it, please mark the answer so the next Docker user knows this is just the image tag selector. |
APP_VERSIONis not a Laravel/runtime setting inside Snipe-IT. In the Docker Compose setup it is only used for image-tag substitution:So it controls which Docker image tag Compose pulls/runs when you use that compose file. If it is empty, Compose falls back to
latest.Once the container is running, the app version shown by Snipe-IT comes from the application code baked into the image, for example
config/version.php. ChangingAPP_VERSIONin.envwill not change the displayed version or upgrade/downgrade the running app by itself.Practical rule:
docker-compose.yml: setAPP_VERSION=8.1.17or whatever tag you want, thendocker …