mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
42bb0c832e
- Move recurring tasks into their own class; inherits from `FeatherTask` - CCS proposals: Don't use API, it's broken - webcrawl instead until it is fixed. - Switch to hypercorn as the ASGI server, *with* support for multiple workers. You can now run feather-ws with, for example, `--workers 6`. See `Dockerfile`. - Introduce support for various coins under `BlockheightTask` - Introduce support for various Reddit communities under `RedditTask` - Introduced weightvoting whilst validating third-party RPC blockheights - where nodes are filtered based on what other nodes are commonly reporting. - Current blockheights are fetched from various block explorers and weightvoting is done to eliminate outliers under `BlockheightTask`. - Don't filter/remove bad nodes from the rpc_nodes list; correctly label them as disabled/bad nodes. - Multiple Feather instances (each for it's own coin) can now run on one machine, using only one Redis instance, as each coins has it's own Redis database index. - Configuration options inside `settings.py` can now be controlled via environment variables. - Better logging through custom log formatting and correct usage of `app.logger.*` - Fixed a bug where one task could overlap with itself if the previous one did not finish yet. This was particularly noticable inside the `RPCNodeCheckTask` where the high timeout (for Tor nodes) could cause the task to run *longer* than the recurring task interval. - Introduced a `docker-compose.yml` to combine the Feather container with Redis and Tor containers. - Blocking IO operations are now done via `aiofiles`
27 lines
634 B
YAML
27 lines
634 B
YAML
version: "3"
|
|
|
|
services:
|
|
redis:
|
|
container_name: redis
|
|
image: "redis:alpine"
|
|
command: redis-server
|
|
environment:
|
|
- REDIS_REPLICATION_MODE=master
|
|
tor-node:
|
|
image: osminogin/tor-simple
|
|
restart: always
|
|
feather-ws:
|
|
container_name: feather-ws
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
- FEATHER_DEBUG=false
|
|
- FEATHER_PORT=1337
|
|
- FEATHER_REDIS_ADDRESS=redis://redis
|
|
- FEATHER_TOR_SOCKS_PROXY=socks5://tor-node:9050
|
|
- FEATHER_COIN_NAME=monero
|
|
- FEATHER_COIN_SYMBOL=xmr
|
|
- FEATHER_COIN_MODE=mainnet
|
|
ports:
|
|
- "1337:1337"
|