Login 24/7 Support Community tyk.io

How to run two Gateways with docker-compose

Managing a second Tyk Gateway with our Tyk Pro Docker Demo is a case of mounting the tyk.conf file into a new volume and declaring a new Gateway service but exposed on a different port. You will need to make some minor modifications to docker-compose.yml and start your services as usual with docker-compose up.


This will only work with an appropriate license. The free license is for development purposes and would allow running Tyk’s licensed platform with only one Gateway. If you want to test Tyk with more please contact us by email [email protected] and we will be happy to discuss your case and PoC requirements as well as providing a short period license.

Add the following to docker-compose.yml (after the tyk-gateway definition)

  image: tykio/tyk-gateway:latest
  - "8081:8080"
  - tyk
  - tyk-redis