Bind GlitchTip version (and upgrade) to v4.0

Previously the `docker-compose.yml` we copied from GlitchTip's
instructions didn't specify a version tag. I don't know a ton about
Docker, but I imagine the deal here is that this means that we could
have used some Docker command like `docker pull` to update what version
of `glitchtip/glitchtip` is stored in our local image store or
something?

Anyway, I wanted to upgrade to version 4.0 (I'm not even actually sure
what version we were on before), and so the way I chose to do this was
to add a version specifier to the `docker-compose.yml` file. Then, all
we had to do was deploy it as usual, and Docker seemed to handle
downloading the image when starting up the service the next time, and
auto-performed the migrations, if I'm understanding correctly. (I did
see migrations being performed in the logs!) Great!
This commit is contained in:
Emi Matchu 2024-05-18 14:54:55 -07:00
parent 79127b5b0d
commit 7a357f1556

View file

@ -28,7 +28,7 @@ services:
image: redis image: redis
restart: unless-stopped restart: unless-stopped
web: web:
image: glitchtip/glitchtip image: glitchtip/glitchtip:v4.0
depends_on: *default-depends_on depends_on: *default-depends_on
ports: ports:
- "8000:8000" - "8000:8000"
@ -38,7 +38,7 @@ services:
- uploads:/code/uploads - uploads:/code/uploads
env_file: glitchtip-conf.env env_file: glitchtip-conf.env
worker: worker:
image: glitchtip/glitchtip image: glitchtip/glitchtip:v4.0
command: ./bin/run-celery-with-beat.sh command: ./bin/run-celery-with-beat.sh
depends_on: *default-depends_on depends_on: *default-depends_on
environment: *default-environment environment: *default-environment
@ -47,7 +47,7 @@ services:
- uploads:/code/uploads - uploads:/code/uploads
env_file: glitchtip-conf.env env_file: glitchtip-conf.env
migrate: migrate:
image: glitchtip/glitchtip image: glitchtip/glitchtip:v4.0
depends_on: *default-depends_on depends_on: *default-depends_on
command: "./manage.py migrate" command: "./manage.py migrate"
environment: *default-environment environment: *default-environment