Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
docker-compose based command interface (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored and DeviaVir committed Oct 30, 2017
1 parent 5d16d89 commit ab5301b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ COPY package.json /app/
RUN npm install -g node-gyp && npm install --unsafe-perm

COPY . /app
RUN ln -s /app/zenbot.sh /usr/local/bin/zenbot

ENV NODE_ENV production

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ docker-compose --file=docker-compose-windows.yml up
If you wish to run commands (e.g. backfills, list-selectors), you can run this separate command after a successful `docker-compose up -d`:

```
docker run --rm --link zenbot_mongodb_1:mongodb -it zenbot_server list-selectors
docker run --rm --link zenbot_mongodb_1:mongodb -it zenbot_server backfill <selector> --days <days>
docker-compose exec server zenbot list-selectors
docker-compose exec server zenbot backfill <selector> --days <days>
```

## Selectors
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ server:
volumes:
- ./conf.js:/app/conf.js
- ./extensions:/app/extensions
- ./simulations:/app/simulations
links:
- mongodb
command: [ "trade", "--paper" ]
Expand Down

0 comments on commit ab5301b

Please # to comment.