version: '3.8'

services:
  tyk-builder-latest:
    image: tykio/tyk-plugin-compiler:${LATEST_VERSION}
    command: souin-plugin
    volumes:
      - .:/plugin-source

  tyk-builder-previous:
    image: tykio/tyk-plugin-compiler:${PREVIOUS_VERSION}
    command: souin-plugin
    volumes:
      - .:/plugin-source

  tyk-builder-second-to-last:
    image: tykio/tyk-plugin-compiler:${SECOND_TO_LAST_VERSION}
    command: souin-plugin
    volumes:
      - .:/plugin-source
