Skip to content

albertrdixon/docker-tyk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-tyk

This is a simple Dockerized version of tyk.io

All configurations are modeled after the tyk.io quickstart configs.

Currently using tyk 1.1

Usage

Build the image

$ docker build -t="yourname/tyk:1.1" .

tyk ueses a redis backend, so run one

$ docker pull dockerfile/redis
$ docker run -d --name redis dockerfile/redis

Now run tyk

$ docker run -d -P --link redis:db yourname/tyk:1.1

Verify all is well (Assuming you use dvm)

$ PORT=$(docker ps -l -q | xargs -I % docker port % 8080 | cut -d : -f 2)
$ dvm ssh -c "curl http://localhost:$PORT/quickstart/get"
{
  "args": {},
  "headers": {
    "Accept": "*/*",
    "Accept-Encoding": "gzip",
    "Connection": "close",
    "Host": "httpbin.org",
    "User-Agent": "curl/7.33.0",
    "X-Request-Id": "34e9b1e6-fc76-4729-a507-75c6008a734c"
  },
  "origin": "172.17.42.1, 162.217.74.180",
  "url": "http://httpbin.org/get"
}

About

Dockerized version of tyk.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages