diff --git a/.gitignore b/.gitignore index 1a1acf4..a972789 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ config.*.yaml docs/node_modules docs/web_deploy +vendor diff --git a/config.yaml b/config.yaml index 9a06de5..503a82e 100644 --- a/config.yaml +++ b/config.yaml @@ -169,7 +169,7 @@ chains: - "https://tokens.pancakeswap.finance/pancakeswap-extended.json" - "https://raw.githubusercontent.com/pancakeswap/token-list/main/lists/cmc.json" - id: 97 - name: "Binance Smart Chain Testnet" + name: "bsc_testnet" rpc_url_client: "https://data-seed-prebsc-1-s1.binance.org:8545/" rpc_url: "https://data-seed-prebsc-1-s1.binance.org:8545/" native_symbol: tBNB diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f19827c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,43 @@ +version: "3.7" + +services: + dex-pairs-oracle: + image: dex-pairs-oracle:latest + restart: on-failure + depends_on: + - dex-pairs-oracle-db + - redis + ports: + - "8000:8000" + volumes: + - ./config.local.yaml:/config.yaml + environment: + - KV_VIPER_FILE=/config.yaml + entrypoint: sh -c "dex-pairs-oracle migrate up && dex-pairs-oracle run all" + + redis: + image: redis:5.0-alpine + restart: unless-stopped + volumes: + - redis-data:/data + ports: + - "6379:6379" + command: + - redis-server + - --appendonly + - "yes" + + dex-pairs-oracle-db: + image: postgres:13 + restart: unless-stopped + environment: + - POSTGRES_USER=dex-pairs-oracle + - POSTGRES_PASSWORD=dex-pairs-oracle + - POSTGRES_DB=dex-pairs-oracle + - PGDATA=/pgdata + volumes: + - dex-pairs-oracle-data:/pgdata + +volumes: + redis-data: + dex-pairs-oracle-data: