kopia lustrzana https://github.com/Stopka/fedisearch-compose
Description fixes
rodzic
18653cff16
commit
8369d9e350
11
README.md
11
README.md
|
@ -2,10 +2,11 @@
|
||||||
|
|
||||||
This an example setup for Fediverse feed crawler and searcher.
|
This an example setup for Fediverse feed crawler and searcher.
|
||||||
|
|
||||||
Fedisearch consists of 3 app containers:
|
Fedisearch consists of 4 app containers:
|
||||||
1. **Elasticsearch** - Key value storage database and fulltext search engine
|
1. **Elasticsearch** - Key value storage database and fulltext search engine
|
||||||
2. **Fedicrawl** - crawls through the Fediverse network and stores all found nodes and also its feeds to database
|
2. **Fedistore** - Provides graphql api for searching and manimpulating with elastic storages
|
||||||
3. **Fedisearch** - web frontend for searching data in database
|
3. **Fedicrawl** - Crawls through the Fediverse network and stores all found nodes and also its feeds to database
|
||||||
|
4. **Fedisearch** - Web frontend for searching data in database
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
App is designed primarily to be run in docker on linux.
|
App is designed primarily to be run in docker on linux.
|
||||||
|
@ -14,7 +15,7 @@ Thus `docker` and `docker-compose` are mandatory dependencies for this example s
|
||||||
I don't have prebuilt images in docker hub ready yet (but it's planned), so you have to build them locally.
|
I don't have prebuilt images in docker hub ready yet (but it's planned), so you have to build them locally.
|
||||||
Docker compose should build images for you from sources...
|
Docker compose should build images for you from sources...
|
||||||
|
|
||||||
1. Clone [fedisearch](https://github.com/Stopka/fedisearch) and [fedicrawl](https://github.com/Stopka/fedicrawl) apps to `./build` directory.
|
1. Clone [fedisearch](https://github.com/Stopka/fedisearch), [fedicrawl](https://github.com/Stopka/fedicrawl) and [fedistore](https://github.com/Stopka/fedistore) apps to `./build` directory.
|
||||||
2. Copy `.env.dist` to `.env` and edit it as needed.
|
2. Copy `.env.dist` to `.env` and edit it as needed.
|
||||||
3. Create an `docker-compose.override.yml` file and override configuration by your liking.
|
3. Create an `docker-compose.override.yml` file and override configuration by your liking.
|
||||||
You should at least add proxy (simple example is in `docker-compose.traefik.yml`) with tls termination.
|
You should at least add proxy (simple example is in `docker-compose.traefik.yml`) with tls termination.
|
||||||
|
@ -26,4 +27,4 @@ All configuration is done by env vars.
|
||||||
Just edit `.env` file.
|
Just edit `.env` file.
|
||||||
|
|
||||||
Meaning of variables can be found in the readme files of
|
Meaning of variables can be found in the readme files of
|
||||||
[fedisearch](https://github.com/Stopka/fedisearch) and [fedicrawl](https://github.com/Stopka/fedicrawl) apps.
|
[fedisearch](https://github.com/Stopka/fedisearch), [fedicrawl](https://github.com/Stopka/fedicrawl)and [fedistore](https://github.com/Stopka/fedistore) apps.
|
||||||
|
|
|
@ -6,7 +6,7 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.fedisearch-searcher.rule=Host(`${FEDISEARCH_DOMAIN}`)&Path(`/api/graphql`)"
|
- "traefik.http.routers.fedisearch-searcher.rule=Host(`${FEDISEARCH_DOMAIN}`)&Path(`/api/graphql`)"
|
||||||
- "traefik.http.services.fedisearch-searcher.loadbalancer.server.port=4000"
|
- "traefik.http.services.fedisearch-searcher.loadbalancer.server.port=3000"
|
||||||
fedisearch-searcher:
|
fedisearch-searcher:
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
|
|
|
@ -57,8 +57,7 @@ services:
|
||||||
- 'MATOMO_SITE_ID=${FEDISEARCH_MATOMO_SITE_ID}'
|
- 'MATOMO_SITE_ID=${FEDISEARCH_MATOMO_SITE_ID}'
|
||||||
- 'STATS_CACHE_MINUTES=${FEDISEARCH_STATS_CACHE_MINUTES}'
|
- 'STATS_CACHE_MINUTES=${FEDISEARCH_STATS_CACHE_MINUTES}'
|
||||||
- 'TZ=${FEDISEARCH_TIMEZONE}'
|
- 'TZ=${FEDISEARCH_TIMEZONE}'
|
||||||
- 'ELASTIC_URL=http://elastic:9200'
|
- 'GRAPHQL_URL=http://localhost:4000/api/graphql'
|
||||||
- 'ELASTIC_PASSWORD=${FEDISEARCH_ELASTIC_PASSWORD}'
|
|
||||||
networks:
|
networks:
|
||||||
fedisearch:
|
fedisearch:
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
|
@ -66,6 +65,7 @@ services:
|
||||||
- fedisearch-storage
|
- fedisearch-storage
|
||||||
fedisearch-elasticsearch:
|
fedisearch-elasticsearch:
|
||||||
image: elasticsearch:8.4.1
|
image: elasticsearch:8.4.1
|
||||||
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- discovery.type=single-node
|
- discovery.type=single-node
|
||||||
- ELASTIC_PASSWORD=${FEDISEARCH_ELASTIC_PASSWORD}
|
- ELASTIC_PASSWORD=${FEDISEARCH_ELASTIC_PASSWORD}
|
||||||
|
|
Ładowanie…
Reference in New Issue