From 340dd41645e4e2b049ff58a11c7e3f6c65e6aed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Thu, 1 Jun 2017 22:50:29 +0100 Subject: [PATCH] docs(docker-compose-client): document server setup --- packages/docker-compose-client/README.md | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/packages/docker-compose-client/README.md b/packages/docker-compose-client/README.md index 563d2961..54517e76 100644 --- a/packages/docker-compose-client/README.md +++ b/packages/docker-compose-client/README.md @@ -9,6 +9,7 @@ Server that exposes [CloudApi](https://apidocs.joyent.com/cloudapi/) through [Gr ## Table of Contents - [Install](#install) +- [Server](#server) - [Usage](#usage) - [License](#license) @@ -18,6 +19,37 @@ Server that exposes [CloudApi](https://apidocs.joyent.com/cloudapi/) through [Gr yarn add docker-compose-client ``` +## Server + +### build + +``` +λ git clone git@github.com:yldio/docker-compose-api.git +λ cd docker-compose-api +λ docker build . +``` + +### run + +**local**: + +``` +λ docker run -p 4242:4242 -d docker-compose-api +``` + +**remote**: +``` +λ docker run \ +-v "/local/path/to/docker/cert":"/usr/src/cert" \ +-e DOCKER_CERT_PATH=/usr/src/cert \ +-e DOCKER_HOST="http://us-sw-1.docker.joyent.com:2376" \ +-e DOCKER_CLIENT_TIMEOUT=300 \ +-e COMPOSE_HTTP_TIMEOUT=300 \ +-p 4242:4242 \ +-d \ +docker-compose-api +``` + ## Usage ```js