The Sock Shop application is packaged using a Docker Compose file.
In this version we create a Docker network and DNS is achieved by using the internal Docker DNS, which reads network alias entries provided by docker-compose.
git clone https://github.com/microservices-demo/microservices-demo cd microservices-demo
Weave Scope (local instance)
sudo curl -L git.io/scope -o /usr/local/bin/scope sudo chmod a+x /usr/local/bin/scope scope launch
Weave Cloud (hosted platform). Get a token by registering here.
sudo curl -L git.io/scope -o /usr/local/bin/scope sudo chmod a+x /usr/local/bin/scope scope launch --service-token=<token>
docker-compose -f deploy/docker-compose/docker-compose.yml up -d
If you want to run the application using a more advanced logging setup based on Fluentd + ELK stack, you can add the logging compose file to override some settings and add some extra containers:
docker-compose -f deploy/docker-compose/docker-compose.yml -f deploy/docker-compose/docker-compose.logging.yml up -d
Once deployed, you should be able to reach Kibana on http://localhost:5601.
There’s a load test provided as a service in this compose file. For more information see Load Test. It will run when the compose is started up, after a delay of 60s. This is a load test provided to simulate user traffic to the application. This will send some traffic to the application, which will form the connection graph that you view in Scope or Weave Cloud.
docker-compose -f deploy/docker-compose/docker-compose.yml down