mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Updating monitor to use new elasticsearch.
This commit is contained in:
parent
a63b4097a3
commit
49d84af67c
3 changed files with 10 additions and 9 deletions
|
@ -77,12 +77,13 @@
|
||||||
env:
|
env:
|
||||||
DOCKERBUILD: ""
|
DOCKERBUILD: ""
|
||||||
state: started
|
state: started
|
||||||
networks_cli_compatible: yes
|
network_mode: host
|
||||||
network_mode: default
|
# networks:
|
||||||
networks:
|
# - name: newsblurnet
|
||||||
- name: newsblurnet
|
# ports:
|
||||||
ports:
|
# - "80:80"
|
||||||
- "80:80"
|
# - "443:443"
|
||||||
|
# - "1936:1936"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
container_default_behavior: no_defaults
|
container_default_behavior: no_defaults
|
||||||
command: "haproxy -f /srv/newsblur/docker/haproxy/haproxy.consul.cfg"
|
command: "haproxy -f /srv/newsblur/docker/haproxy/haproxy.consul.cfg"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import psycopg2
|
||||||
import pymysql
|
import pymysql
|
||||||
import pymongo
|
import pymongo
|
||||||
import redis
|
import redis
|
||||||
from elasticsearch import Elasticsearch
|
import elasticsearch
|
||||||
|
|
||||||
from newsblur_web import settings
|
from newsblur_web import settings
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ def db_check_redis_pubsub():
|
||||||
@app.route("/db_check/elasticsearch")
|
@app.route("/db_check/elasticsearch")
|
||||||
def db_check_elasticsearch():
|
def db_check_elasticsearch():
|
||||||
try:
|
try:
|
||||||
conn = pyes.ES(LOCAL_HOST)
|
conn = elasticsearch.Elasticsearch(LOCAL_HOST)
|
||||||
except:
|
except:
|
||||||
abort(503)
|
abort(503)
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ flask==1.1.2
|
||||||
pymongo==3.11.2
|
pymongo==3.11.2
|
||||||
psycopg2>=2,<3
|
psycopg2>=2,<3
|
||||||
redis==3.5.3
|
redis==3.5.3
|
||||||
elasticsearch>=7.0.0,<8.0.0
|
elasticsearch>=7,<8
|
||||||
pymysql==0.10.1
|
pymysql==0.10.1
|
||||||
celery>=4,<5
|
celery>=4,<5
|
||||||
Django>=3.1,<3.2
|
Django>=3.1,<3.2
|
||||||
|
|
Loading…
Add table
Reference in a new issue