Skip to content

Commit

Permalink
Fixed docker container name to resolve #1.
Browse files Browse the repository at this point in the history
Free Software Free Society

To support commits by ctubio,
you can buy-me-a-drink with a small git tip at:
  1GitTipgxvKB3zjCLXRcSgDhC9pivkpc7u

I promise to drink chocolate milk in the development of the next commit.
Also it will help me to keep the maintenance of the project open source.

To request new features or in case this commit breaks something for you,
please create a new github issue with all possible details,
but never share your API Keys!

Signed-off-by: Carles Tubio <ctubio@users.noreply.github.com>
  • Loading branch information
ctubio committed Jun 14, 2017
1 parent 43fdf60 commit e50a4fe
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions dist/README.md
Expand Up @@ -14,13 +14,17 @@ To run K.js under winy (or if you love Docker), make use of the [Dockerfile](htt

1. Please install [docker](https://www.docker.com/) for your system before proceeding. Requires at least Docker 1.7.1. Mac/Windows only: Ensure boot2docker or docker-machine is set up, depending on Docker version. See [the docs](https://docs.docker.com/installation/mac/) for more help.

2. Set up mongodb. If you do not have a mongodb instance already running: `docker run -p 27017:27017 --name K-mongo -d mongo`.
2. Copy the repository [Dockerfile](https://raw.githubusercontent.com/ctubio/Krypto-trading-bot/master/dist/Dockerfile) into a text editor. Change the environment variables to match your desired [configuration](https://github.com/ctubio/Krypto-trading-bot/tree/master/etc#configuration-options). Input your exchange connectivity information, account information, and mongoDB credentials.

3. Copy the repository [Dockerfile](https://raw.githubusercontent.com/ctubio/Krypto-trading-bot/master/dist/Dockerfile) into a text editor. Change the environment variables to match your desired [configuration](https://github.com/ctubio/Krypto-trading-bot/tree/master/etc#configuration-options). Input your exchange connectivity information, account information, and mongoDB credentials.

4. Save your new Dockerfile, preferably in a secure location and in an empty directory. Build the image from the Dockerfile `docker build -t K .`
3. Save your new Dockerfile, preferably in a secure location and in an empty directory. Then build the images and run the containers:
```
cd path/to/Dockerfile
docker run -p 27017:27017 --name K-mongo -d mongo
docker build -t k .
docker run -p 3000:3000 --link K-mongo:mongo --name K -d k
```

5. Run the container `docker run -p 3000:3000 --link K-mongo:mongo --name K -d K`. If you run `docker ps`, you should see K and mongo containers running.
If you run `docker ps`, you should see Kjs and mongo containers running.

### fix.gdax.com.conf
To run GDAX FIX API encrypted under SSL, this configuration file will be used to launch [stunnel](https://www.stunnel.org/index.html); no need to edit.

0 comments on commit e50a4fe

Please sign in to comment.