Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 1.39 KB

DOCKER_README.md

File metadata and controls

44 lines (36 loc) · 1.39 KB

Quick reference

Readme, source and documentation on https://github.com/Der-Henning/crypto-backtesting-db.

Supported Tags and respective Dockerfile links

The latest images represent the latest stable release. The edge images contain the latest commits to the main branch.

Quick Start

Docker Compose Example:

version: "3.3"
services:
  worker:
    image: derhenning/crypto-db:latest
    environment:
      - DEBUG=false                 ## true for debug log messages
      - SYMBOLS=["BTCUSDT"]         ## Symbols as JSON array
      - START_DATE=Januar 01, 2020  ## Beginn of time series
      - SLEEP_TIME=60               ## Time to wait till next scan in seconds - default 60 seconds
      - BINANCE_API_KEY=            ## your Binance API Key
      - BINANCE_API_SECRET=         ## your Binance API Secret
      - TIMESCALE_HOST=db
      - TIMESCALE_PORT=5432
      - TIMESCALE_USERNAME=postgres
      - TIMESCALE_PASSWORD=postgres
  db:
    image: timescale/timescaledb:2.9.1-pg14
    environment:
      - POSTGRES_PASSWORD=postgres
    ports:
      - 5432:5432
    volumes:
      - data:/var/lib/postgresql/data

volumes:
  data: