Giter Site home page Giter Site logo

atomic_markets_docker's Introduction

Setup

  • Build container with docker-compose build
  • Launch container with docker-compose up
  • Create database tables with ./create_tables.py in the "dexstats_sqlite_db" subfolder. To drop existing tables first, use ./create_tables.py drop_first.
  • Populate historical database data with ./update_db.py 3000. where the numeric parameter is how many days ago to query from external sources.

You'll need to setup a .env file with the values below in the root folder of this repository:

# External MySQL source DB
mysql_hostname="xx.xx.xx.xx"
mysql_username="user"
mysql_password="pass"
mysql_db="db_name"

# FastAPI
API_USER="user"
API_PASS="pass"

# Postgres/TimescaleDB
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DATABASE=pg_db_name
PGDATA=/var/lib/postgresql/data
POSTGRES_USER=pg_username
POSTGRES_PASSWORD=pg_password

# AtomicDEX API 
MM2_USERPASS="rpc_password"
MM2_SEED="seed phrase or private key"
# Using default netid
MM2_NETID=7777
MM2_GUI="MM2_Docker"
MM2_RPC_IP="0.0.0.0"
MM2_PORT=7783
MM2_RPC_LOCAL_ONLY="False"
MM2_I_AM_SEED="False"
# Using default seednodes
MM2_SEEDNODES="80.82.76.214 89.248.168.39 89.248.173.231"

# Do not change the values below, they are used for internal container networking.
DOCKER_MM2_SERVICE_NAME="mm2"
DOCKER_REACT_SERVICE_NAME="dashboard"
DOCKER_DB_SERVICE_NAME="db"
DOCKER_API_SERVICE_NAME="fastapi"

A second .env file is also needed in the atmicdex_markets folder with a value for REACT_APP_API_URL. Set it to http://127.0.0.1:8080" for local testing.

atomic_markets_docker's People

Contributors

smk762 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.