please take a look at the application.properties and change your settings.
curl -vX POST http://localhost:8080/http://www.taobao.com
please install Docker Compose and start Redis container.
$ mvn -DskipTests clean package
$ docker build -t linuxchina/url-shortener .
Please add following content into your docker-compose.yml
urlshortener:
image: linuxchina/url-shortener
ports:
- "8080:8080"
environment:
DOMAIN_NAME: "http://mydomain.com/"
REDIS_HOST: "192.168.59.103"
Create a docker-compose.yml with following content:
redis:
image: redis:2.8.19
ports:
- "6379:6379"
urlshortener:
image: linuxchina/url-shortener
ports:
- "8080:8080"
environment:
DOMAIN_NAME: "http://mydomain.com/"
REDIS_HOST: "redis.mvnsearch.net"
links:
- redis:redis.mvnsearch.net
The redis.mvnsearch.net is the redis host name.