1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 14:10:04 +02:00

docs(docker-compose-client): document server setup

This commit is contained in:
Sérgio Ramos 2017-06-01 22:50:29 +01:00
parent caee178ad8
commit 340dd41645

View File

@ -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