Appium Driver version while using Dockerfile and Selenium Grid

I’ve inherited an Android automation project that utilizes Appium to run real Android devices and emulators over Selenium Grid. I’ve also currently updated our test server to all the latest Apple OSes and am up to date on Appium there, and I have been running a fairly up to date version of Selenium Grid.

However, I also run an iOS automation project with a similar set up (although this just uses docker-compose.yml as opposed to the Dockerfile, etc), and I am able to get the Appium Driver version there to update as i have it set in our gradle file (java-client 7.3.0), which gives us appium version 1.18.2 when running on the grid (for iOS).

I can’t find out where to update the Appium Driver to run the latest version for these Android test though. I would think updating the java-client version would do it (as it did with the iOS project), but whenever I start the grid, it shows as Appium version 1.8.1 instead.

Where is this version controlled and how can I update it? Is the appium driver controlled by the docker-compose file? Here is the file for example:

services:
  hub:
    image: selenium/hub:3.141.59-antimony
    ports:
      - "4452:4444"

    environment:
      - "constraint:stage==qa"
      - "constraint:node==server02.company.net"
      - GRID_BROWSER_TIMEOUT=60000
      - GRID_TIMEOUT=90000
      - GRID_MAX_SESSION=50
      - GRID_CLEAN_UP_CYCLE=60000
      - GRID_UNREGISTER_IF_STILL_DOWN_AFTER=180000
      - GRID_NEW_SESSION_WAIT_TIMEOUT=120000

  Pixel2:
    image: co-docker.artifactory.company.net/userDir/android-appium:1.0.7
    depends_on:
      - hub
    privileged: true
    environment:
      - "constraint:stage==qa"
      - "constraint:node!=server04.company.net"
      - SKIN_NAME=Pixel2
      - API_LEVEL=27
      - SELENIUM_HOST=hub
      - SELENIUM_PORT=4444

  Pixel:
    image: co-docker.artifactory.company.net/userDir/android-appium:1.0.7
    depends_on:
      - hub
    privileged: true
    environment:
      - "constraint:stage==qa"
      - "constraint:node!=server04.company.net"
      - SKIN_NAME=Pixel
      - API_LEVEL=26
      - SELENIUM_HOST=hub
      - SELENIUM_PORT=4444

  DroidTurbo:
    image: co-docker.artifactory.company.net/userDir/android-appium:1.0.7
    depends_on:
      - hub
    privileged: true
    environment:
      - "constraint:stage==qa"
      - "constraint:node!=server04.company.net"
      - SKIN_NAME=DroidTurbo
      - API_LEVEL=25
      - SELENIUM_HOST=hub
      - SELENIUM_PORT=4444

  ZDroid:
    image: co-docker.artifactory.company.net/userDir/android-appium:1.0.7
    depends_on:
      - hub
    privileged: true
    environment:
      - "constraint:stage==qa"
      - "constraint:node!=server04.company.net"
      - SKIN_NAME=ZDroid
      - API_LEVEL=24
      - SELENIUM_HOST=hub
      - SELENIUM_PORT=4444

  LGAristo:
    image: co-docker.artifactory.company.net/userDir/android-appium:1.0.7
    depends_on:
      - hub
    privileged: true
    environment:
      - "constraint:stage==qa"
      - "constraint:node!=server04.company.net"
      - SKIN_NAME=LGAristo
      - API_LEVEL=23
      - SELENIUM_HOST=hub
      - SELENIUM_PORT=4444

  LGG6:
    image: co-docker.artifactory.company.net/userDir/android-appium:1.0.7
    depends_on:
      - hub
    privileged: true
    environment:
      - "constraint:stage==qa"
      - "constraint:node!=server04.company.net"
      - SKIN_NAME=LGG6
      - API_LEVEL=27
      - SELENIUM_HOST=hub
      - SELENIUM_PORT=4444