The ${BITWARDEN_VERSION} and ${BITWARDEN_WEB_VERSION} can be variables in an .env file or just put the version 1.34.0 and 2.14.0 accordingly.
Then run docker-compose up -d and it should download the newer images and run. Just in case something goes wrong, I suggest you first backup your volumes (default bwdata) then upddate. That way you are safe, if the update, for any reason does not work, you put back the older versions.
Yes, the script actually downloads the newer version of itself (which has the new versions written in it) and does the equivalent of docker-compose up -d.
I have a running server myself and update it recently
it didnt work, i know this as i go back to the web admin page of bw and it says im still on 1.33.1 and 2.13.2
root@bw:~# docker-compose -f /bitwarden/bwdata/docker/docker-compose.yml up -d
bitwarden-web is up-to-date
bitwarden-notifications is up-to-date
bitwarden-events is up-to-date
bitwarden-identity is up-to-date
bitwarden-icons is up-to-date
bitwarden-api is up-to-date
bitwarden-mssql is up-to-date
bitwarden-attachments is up-to-date
bitwarden-admin is up-to-date
bitwarden-nginx is up-to-date
root@bw:~#
If you use the image tag latest then you need to run docker-compose pull then docker-compose up -d. I would still recommend to use specific tags, because then you know which was the latest version running well, in case of something goes wrong.
To be sure, try this: docker image ls | grep "bitwarden"
you should see something like this:
bitwarden/web 2.14.0 8fe12e915c97 9 days ago 221MB
bitwarden/mssql 1.34.0 1f5ed9d614df 9 days ago 1.4GB
bitwarden/admin 1.34.0 726ae86eb0ac 9 days ago 282MB
bitwarden/events 1.34.0 086920aec14c 9 days ago 263MB
bitwarden/notifications 1.34.0 dfadf84c582c 9 days ago 264MB
bitwarden/icons 1.34.0 f87c70a6d539 9 days ago 264MB
bitwarden/attachments 1.34.0 3a463364fe35 9 days ago 209MB
bitwarden/identity 1.34.0 8750acc4f7f7 9 days ago 356MB
bitwarden/api 1.34.0 86f509874ec3 9 days ago 358MB
bitwarden/nginx 1.32.0 7feb963f6c79 4 months ago 134MB
bitwarden/nginx 1.34.0 7feb963f6c79 4 months ago 134MB
bitwarden/web 2.12.0 d9cb8eae5562 8 months ago 308MB
bitwarden/mssql 1.32.0 d92a09dce472 8 months ago 1.39GB
bitwarden/admin 1.32.0 4d158aa7d9d1 8 months ago 298MB
bitwarden/events 1.32.0 abb2acd7bc0b 8 months ago 321MB
bitwarden/notifications 1.32.0 eb43e98b4135 8 months ago 289MB
bitwarden/icons 1.32.0 53b8984377c7 8 months ago 323MB
bitwarden/attachments 1.32.0 51e7de910b78 8 months ago 297MB
bitwarden/identity 1.32.0 a4ca753ee423 8 months ago 321MB
bitwarden/api 1.32.0 85fd381456cf 8 months ago 331MB