Skip to content

Commit

Permalink
update config example && add docker-compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Nov 1, 2023
1 parent c9aed9d commit f15a5f6
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
config.*.yaml
docs/node_modules
docs/web_deploy
vendor
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 43 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit f15a5f6

Please sign in to comment.