Created
September 12, 2019 16:51
-
-
Save seigler/164d44e04b31c26824b845c47a5f0471 to your computer and use it in GitHub Desktop.
nginx proxied dashpay-dapi docker compose with letsencrypt certificate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"network": "testnet", | |
"port": 3001, | |
"services": [ | |
"dashd", | |
"web", | |
"@dashevo/insight-api" | |
], | |
"servicesConfig": { | |
"dashd": { | |
"connect": [ | |
{ | |
"rpchost": "dashd_core-devnet-phez", | |
"rpcport": 20002, | |
"rpcuser": "dashrpc", | |
"rpcpassword": "password", | |
"zmqpubrawtx": "tcp://dashd_core-devnet-phez:20003", | |
"zmqpubhashblock": "tcp://dashd_core-devnet-phez:20003" | |
} | |
] | |
}, | |
"@dashevo/insight-api": { | |
"disableRateLimiter": true | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
devnet=phez | |
datadir=/dash | |
port=20001 | |
rpcport=20002 | |
server=1 # Required if using RPC | |
rpcallowip=0.0.0.0/0 | |
rpcuser=dashrpc | |
rpcpassword=password | |
# Index | |
addressindex=1 | |
spentindex=1 | |
txindex=1 | |
timestampindex=1 | |
# ZMQ | |
zmqpubrawtx=tcp://0.0.0.0:20003 | |
zmqpubrawtxlock=tcp://0.0.0.0:20003 | |
zmqpubhashblock=tcp://0.0.0.0:20003 | |
zmqpubhashtx=tcp://0.0.0.0:20003 | |
zmqpubhashtxlock=tcp://0.0.0.0:20003 | |
zmqpubrawblock=tcp://0.0.0.0:20003 | |
# Hard-coded first node | |
addnode=dash.thephez.com:20001 | |
sporkaddr=ycQUBAw6kXVAdpPYfxX9w6hqeEJNrw584m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
expose: | |
- 80 | |
- 443 | |
volumes: | |
- /etc/nginx/certs | |
- /etc/nginx/vhost.d | |
- /usr/share/nginx/html | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
labels: | |
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy | |
restart: always | |
nginx-proxy-letsencrypt: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
container_name: nginx-proxy-letsencrypt | |
volumes_from: | |
- nginx-proxy | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
environment: | |
- [email protected] | |
restart: always | |
dashd_core: | |
image: dashpay/dashd | |
container_name: dashd_core-devnet-phez | |
command: /bin/bash -c 'dashd -conf=/dash.conf -printtoconsole' | |
restart: always | |
volumes: | |
- dashd_data_devnet_phez:/dash | |
- ./devnet-phez-dash.conf:/dash.conf | |
ports: | |
- 20001:20001 | |
expose: | |
- 20002 | |
- 20003 | |
dapi_core: | |
image: dashpay/dapi | |
container_name: dapi_core-devnet-phez | |
command: npm run core | |
restart: always | |
ports: | |
- 3000:3000 | |
expose: | |
- 3000 | |
environment: | |
- INSIGHT_URI=http://insight-api:3001/insight-api | |
#- RPC_SERVER_PORT=3000 | |
- DASHCORE_RPC_HOST=dashd_core-devnet-phez | |
- DASHCORE_RPC_PORT=20002 | |
#- DASHCORE_RPC_USER=dashrpc #default | |
#- DASHCORE_RPC_PASS=password #default | |
- DASHCORE_ZMQ_HOST=dashd_core-devnet-phez | |
- DASHCORE_ZMQ_PORT=20003 | |
- DASHCORE_P2P_HOST=dashd_core-devnet-phez | |
- DASHCORE_P2P_PORT=20001 | |
#- DASHCORE_P2P_NETWORK=testnet #default | |
- VIRTUAL_HOST=docker.seigler.net | |
- VIRTUAL_PORT=3000 | |
- LETSENCRYPT_HOST=docker.seigler.net | |
insight: | |
image: dashpay/insight-api | |
container_name: insight-api | |
#ports: | |
# - 3002:3001 | |
expose: | |
- 3001 | |
volumes: | |
- ./dashcore-node.json:/insight/dashcore-node.json | |
volumes: | |
dashd_data_devnet_phez: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment