Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First docker-compose.yml #226

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions examples/compose/cryptostore2tty/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Usage: `docker compose up`

Console displays
```
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00221000 price: 31151.25000000 id: 2673492213 type: None timestamp: 1689354730.092
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00219000 price: 31151.32000000 id: 2673492214 type: None timestamp: 1689354730.092
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00107000 price: 31151.33000000 id: 2673492215 type: None timestamp: 1689354730.092
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00033000 price: 31151.59000000 id: 2673492216 type: None timestamp: 1689354730.092
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00087000 price: 31151.72000000 id: 2673492217 type: None timestamp: 1689354730.092
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00081000 price: 31151.99000000 id: 2673492218 type: None timestamp: 1689354730.096
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00081000 price: 31151.99000000 id: 2673492219 type: None timestamp: 1689354730.096
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00347000 price: 31151.99000000 id: 2673492220 type: None timestamp: 1689354730.117
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00238000 price: 31151.99000000 id: 2673492221 type: None timestamp: 1689354730.122
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00174000 price: 31151.99000000 id: 2673492222 type: None timestamp: 1689354730.134
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00123000 price: 31151.99000000 id: 2673492223 type: None timestamp: 1689354730.145
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00123000 price: 31151.99000000 id: 2673492224 type: None timestamp: 1689354730.156
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00123000 price: 31151.99000000 id: 2673492225 type: None timestamp: 1689354730.182
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: sell amount: 0.00162000 price: 31151.98000000 id: 2673492226 type: None timestamp: 1689354730.213
cryptostore-cryptostore-1 | 2023-07-14 17:12:10 - exchange: BINANCE symbol: BTC-USDT side: buy amount: 0.00369000 price: 31151.99000000 id: 2673492227 type: None timestamp: 1689354730.385
```

but data are not stored
9 changes: 9 additions & 0 deletions examples/compose/cryptostore2tty/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: "3.3"
services:
cryptostore2tty:
image: ghcr.io/bmoscon/cryptostore:latest
environment:
- EXCHANGE=BINANCE
- CHANNELS=trades
- SYMBOLS=BTC-USDT
- BACKEND=TTY