update example docker-compose
This commit is contained in:
parent
ca39d38dda
commit
a1e5d22570
2 changed files with 18 additions and 16 deletions
|
@ -13,12 +13,11 @@ services:
|
||||||
network_mode: host
|
network_mode: host
|
||||||
volumes:
|
volumes:
|
||||||
- "lbry_rocksdb:/database"
|
- "lbry_rocksdb:/database"
|
||||||
environment:
|
environment: # for full options, see `scribe --help`
|
||||||
- HUB_COMMAND=scribe
|
- HUB_COMMAND=scribe
|
||||||
- DAEMON_URL=http://lbry:lbry@127.0.0.1:9245
|
- DAEMON_URL=http://lbry:lbry@127.0.0.1:9245
|
||||||
- MAX_QUERY_WORKERS=2
|
- MAX_QUERY_WORKERS=2
|
||||||
- FILTERING_CHANNEL_IDS=770bd7ecba84fd2f7607fb15aedd2b172c2e153f 95e5db68a3101df19763f3a5182e4b12ba393ee8
|
#- CACHE_ALL_TX_HASHES=Yes # uncomment to keep an index of all tx hashes in memory. This uses lots (10+g) of memory but substantially improves performance.
|
||||||
- BLOCKING_CHANNEL_IDS=dd687b357950f6f271999971f43c785e8067c3a9 06871aa438032244202840ec59a469b303257cad b4a2528f436eca1bf3bf3e10ff3f98c57bd6c4c6
|
|
||||||
scribe_elastic_sync:
|
scribe_elastic_sync:
|
||||||
depends_on:
|
depends_on:
|
||||||
- es01
|
- es01
|
||||||
|
@ -29,13 +28,15 @@ services:
|
||||||
- "127.0.0.1:19080:19080" # elastic notifier port
|
- "127.0.0.1:19080:19080" # elastic notifier port
|
||||||
volumes:
|
volumes:
|
||||||
- "lbry_rocksdb:/database"
|
- "lbry_rocksdb:/database"
|
||||||
environment:
|
environment: # for full options, see `scribe-elastic-sync --help`
|
||||||
- HUB_COMMAND=scribe-elastic-sync
|
- HUB_COMMAND=scribe-elastic-sync
|
||||||
- MAX_QUERY_WORKERS=2
|
- MAX_QUERY_WORKERS=2
|
||||||
- ELASTIC_HOST=127.0.0.1
|
|
||||||
- ELASTIC_PORT=9200
|
|
||||||
- FILTERING_CHANNEL_IDS=770bd7ecba84fd2f7607fb15aedd2b172c2e153f 95e5db68a3101df19763f3a5182e4b12ba393ee8
|
- FILTERING_CHANNEL_IDS=770bd7ecba84fd2f7607fb15aedd2b172c2e153f 95e5db68a3101df19763f3a5182e4b12ba393ee8
|
||||||
- BLOCKING_CHANNEL_IDS=dd687b357950f6f271999971f43c785e8067c3a9 06871aa438032244202840ec59a469b303257cad b4a2528f436eca1bf3bf3e10ff3f98c57bd6c4c6
|
- BLOCKING_CHANNEL_IDS=dd687b357950f6f271999971f43c785e8067c3a9 06871aa438032244202840ec59a469b303257cad b4a2528f436eca1bf3bf3e10ff3f98c57bd6c4c6
|
||||||
|
#- ELASTIC_HOST=127.0.0.1 # elasticsearch host
|
||||||
|
#- ELASTIC_PORT=9200 # elasticsearch port
|
||||||
|
#- ELASTIC_NOTIFIER_HOST=127.0.0.1 # address for the elastic sync notifier to connect to
|
||||||
|
#- ELASTIC_NOTIFIER_PORT=19080
|
||||||
scribe_hub:
|
scribe_hub:
|
||||||
depends_on:
|
depends_on:
|
||||||
- scribe_elastic_sync
|
- scribe_elastic_sync
|
||||||
|
@ -45,22 +46,23 @@ services:
|
||||||
network_mode: host
|
network_mode: host
|
||||||
ports:
|
ports:
|
||||||
- "50001:50001" # electrum rpc port and udp ping port
|
- "50001:50001" # electrum rpc port and udp ping port
|
||||||
- "2112:2112" # comment out to disable prometheus
|
- "2112:2112" # comment out to disable prometheus metrics
|
||||||
volumes:
|
volumes:
|
||||||
- "lbry_rocksdb:/database"
|
- "lbry_rocksdb:/database"
|
||||||
environment:
|
environment: # for full options, see `scribe-hub --help`
|
||||||
- HUB_COMMAND=scribe-hub
|
- HUB_COMMAND=scribe-hub
|
||||||
- DAEMON_URL=http://lbry:lbry@127.0.0.1:9245 # used for broadcasting transactions
|
- DAEMON_URL=http://lbry:lbry@127.0.0.1:9245 # used for broadcasting transactions
|
||||||
- MAX_QUERY_WORKERS=4 # reader threads
|
|
||||||
- MAX_SESSIONS=100000
|
|
||||||
- ELASTIC_HOST=127.0.0.1
|
|
||||||
- ELASTIC_PORT=9200
|
|
||||||
- HOST=0.0.0.0
|
- HOST=0.0.0.0
|
||||||
- PROMETHEUS_PORT=2112
|
- MAX_QUERY_WORKERS=4 # reader threads
|
||||||
- TCP_PORT=50001
|
- PROMETHEUS_PORT=2112 # comment out to disable prometheus metrics
|
||||||
- ALLOW_LAN_UDP=No
|
|
||||||
- FILTERING_CHANNEL_IDS=770bd7ecba84fd2f7607fb15aedd2b172c2e153f 95e5db68a3101df19763f3a5182e4b12ba393ee8
|
- FILTERING_CHANNEL_IDS=770bd7ecba84fd2f7607fb15aedd2b172c2e153f 95e5db68a3101df19763f3a5182e4b12ba393ee8
|
||||||
- BLOCKING_CHANNEL_IDS=dd687b357950f6f271999971f43c785e8067c3a9 06871aa438032244202840ec59a469b303257cad b4a2528f436eca1bf3bf3e10ff3f98c57bd6c4c6
|
- BLOCKING_CHANNEL_IDS=dd687b357950f6f271999971f43c785e8067c3a9 06871aa438032244202840ec59a469b303257cad b4a2528f436eca1bf3bf3e10ff3f98c57bd6c4c6
|
||||||
|
#- MAX_SESSIONS=100000 # uncomment to increase the maximum number of electrum connections, defaults to 1000
|
||||||
|
#- ALLOW_LAN_UDP=Yes # uncomment to reply to clients on the local network
|
||||||
|
#- ELASTIC_HOST=127.0.0.1 # elasticsearch host
|
||||||
|
#- ELASTIC_PORT=9200 # elasticsearch port
|
||||||
|
#- ELASTIC_NOTIFIER_HOST=127.0.0.1 # address for the elastic sync notifier to connect to
|
||||||
|
#- ELASTIC_NOTIFIER_PORT=19080
|
||||||
es01:
|
es01:
|
||||||
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.0
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.0
|
||||||
container_name: es01
|
container_name: es01
|
||||||
|
|
|
@ -12,6 +12,6 @@ fi
|
||||||
case "$HUB_COMMAND" in
|
case "$HUB_COMMAND" in
|
||||||
scribe ) exec /home/lbry/.local/bin/scribe "$@" ;;
|
scribe ) exec /home/lbry/.local/bin/scribe "$@" ;;
|
||||||
scribe-hub ) exec /home/lbry/.local/bin/scribe-hub "$@" ;;
|
scribe-hub ) exec /home/lbry/.local/bin/scribe-hub "$@" ;;
|
||||||
scribe-elastic-sync ) exec /home/lbry/.local/bin/scribe-elastic-sync ;;
|
scribe-elastic-sync ) exec /home/lbry/.local/bin/scribe-elastic-sync "$@" ;;
|
||||||
* ) "HUB_COMMAND env variable must be scribe, scribe-hub, or scribe-elastic-sync" && exit 1 ;;
|
* ) "HUB_COMMAND env variable must be scribe, scribe-hub, or scribe-elastic-sync" && exit 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue