diff --git a/server/cmd/dcrdex/sample-dcrdex.conf b/server/cmd/dcrdex/sample-dcrdex.conf index a2e7e08d52..6b5a90b67c 100644 --- a/server/cmd/dcrdex/sample-dcrdex.conf +++ b/server/cmd/dcrdex/sample-dcrdex.conf @@ -94,7 +94,7 @@ ; PostgreSQL DB password. ; Can be omitted when UNIX socket is used. ; HINT: check pg_hba.conf for postgresql authentication settings. -; pgpass= +pgpass=dexpass ; PostgreSQL server host:port or UNIX socket (e.g. /run/postgresql). ; Default value is 127.0.0.1:5432 @@ -182,3 +182,4 @@ ; Disable the HTTP data API. ; Default is false. ; nodata=true + diff --git a/server/cmd/dcrdex/sample-markets.json b/server/cmd/dcrdex/sample-markets.json index 3811ed090c..12d96c394a 100644 --- a/server/cmd/dcrdex/sample-markets.json +++ b/server/cmd/dcrdex/sample-markets.json @@ -1,81 +1,46 @@ { "markets": [ { - "base": "DCR_mainnet", - "quote": "BTC_mainnet", + "base": "DCR_testnet", + "quote": "ETH_testnet", "lotSize": 100000000, - "rateStep": 100000, - "epochDuration": 10000, + "rateStep": 1000, + "epochDuration": 6000, "marketBuyBuffer": 1.25 }, { - "base": "BTC_testnet", - "quote": "LTC_testnet", - "lotSize": 100000, + "base": "DCR_testnet", + "quote": "USDC_ETH_testnet", + "lotSize": 100000000, "rateStep": 1000000, "epochDuration": 6000, "marketBuyBuffer": 1.25 } ], "assets": { - "DCR_mainnet": { - "bip44symbol": "dcr", - "network": "mainnet", - "maxFeeRate": 10, - "swapConf": 4, - "configPath": "/home/dcrd/.dcrd/dcrd.conf", - "regConfs": 2, - "regFee": 10000000, - "regXPub": "xpubdecredonlyadsf", - "bondAmt": 100000000, - "bondConfs": 1 - }, "DCR_testnet": { "bip44symbol": "dcr", "network": "testnet", "maxFeeRate": 10, "swapConf": 1, - "configPath": "/home/dcrd/.dcrd/dcrd.conf", - "regFee": 10000000, - "regXPub": "tpubdecredonlyadsf", - "bondAmt": 100000000, + "configPath": "/Users/norwnd/Library/Application Support/Dcrd/dcrd.conf", + "regFee": 10000, + "regXPub": "tpubVpZ9t5AHWHeVpT5V81jST5z32gwsCNGDCRmZZeN5ki6yZYDpxfo7XPmFyQDQVcTJM8x5K2dHAEvAMBSbaLi9QhbA5X5QAYopFMFZMm5B5mh", + "bondAmt": 100000, "bondConfs": 1 }, - "BTC_mainnet": { - "bip44symbol": "btc", - "network": "mainnet", - "maxFeeRate": 100, - "swapConf": 3, - "regConfs": 2, - "regFee": 500000, - "regXPub": "xpubbitcoinonlyasdf" - }, - "BTC_testnet": { - "bip44symbol": "btc", - "network": "testnet", - "maxFeeRate": 100, - "swapConf": 1 - }, - "LTC_mainnet": { - "bip44symbol": "ltc", - "network": "mainnet", - "maxFeeRate": 20, - "swapConf": 6 - }, - "LTC_testnet": { - "bip44symbol": "ltc", - "network": "testnet", - "maxFeeRate": 20, - "swapConf": 6 - }, "ETH_testnet": { "bip44symbol": "eth", "network": "testnet", - "lotSize": 1000000000, - "rateStep": 1000000000, "maxFeeRate": 200, "swapConf": 12, - "configPath": "/home/.ethereum/dex.conf" + "configPath": "/Users/norwnd/Library/Application Support/Dcrdex/ethereum.conf" + }, + "USDC_ETH_testnet": { + "bip44symbol": "usdc.eth", + "network": "testnet", + "maxFeeRate": 200, + "swapConf": 12 } } -} +} \ No newline at end of file diff --git a/server/docker/deps-compose.yml b/server/docker/deps-compose.yml new file mode 100644 index 0000000000..12d90c8d03 --- /dev/null +++ b/server/docker/deps-compose.yml @@ -0,0 +1,17 @@ +version: '3' +services: + postgres: + container_name: "postgres" + hostname: postgres + image: postgres:12-alpine + ports: + - "5432:5432" + volumes: + - server_db:/var/lib/postgresql/data + environment: + POSTGRES_USER: dcrdex + POSTGRES_PASSWORD: dexpass + POSTGRES_DB: dcrdex_testnet +volumes: + server_db: + driver: local