mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Redis dbs now moved to their own port.
This commit is contained in:
parent
4ebfaf1ba6
commit
c21d5a61c4
2 changed files with 5 additions and 4 deletions
|
@ -103,6 +103,7 @@
|
|||
become: yes
|
||||
command:
|
||||
docker run --rm --name=pg_basebackup --network=host -e POSTGRES_PASSWORD=newsblur -v /srv/newsblur/docker/volumes/postgres/data:/var/lib/postgresql/data postgres:13 pg_basebackup -h db-postgres.service.nyc1.consul -p 5432 -U newsblur -D /var/lib/postgresql/data -Fp -R -Xs -P -c fast
|
||||
|
||||
- name: Create Postgres docker volumes with correct permissions
|
||||
become: yes
|
||||
file:
|
||||
|
|
|
@ -156,7 +156,7 @@ def db_check_redis_user():
|
|||
if request.args.get('consul') == '1':
|
||||
return str(1)
|
||||
|
||||
port = request.args.get('port', 5379)
|
||||
port = request.args.get('port', 6381)
|
||||
|
||||
try:
|
||||
r = redis.Redis(f'{settings.SERVER_NAME}.node.nyc1.consul:{port}', db=0)
|
||||
|
@ -178,7 +178,7 @@ def db_check_redis_story():
|
|||
if request.args.get('consul') == '1':
|
||||
return str(1)
|
||||
|
||||
port = request.args.get('port', 5379)
|
||||
port = request.args.get('port', 6380)
|
||||
|
||||
try:
|
||||
r = redis.Redis(f'{settings.SERVER_NAME}.node.nyc1.consul:{port}', db=1)
|
||||
|
@ -200,7 +200,7 @@ def db_check_redis_sessions():
|
|||
if request.args.get('consul') == '1':
|
||||
return str(1)
|
||||
|
||||
port = request.args.get('port', 5379)
|
||||
port = request.args.get('port', 5382)
|
||||
|
||||
try:
|
||||
r = redis.Redis(f'{settings.SERVER_NAME}.node.nyc1.consul:{port}', db=5)
|
||||
|
@ -222,7 +222,7 @@ def db_check_redis_pubsub():
|
|||
if request.args.get('consul') == '1':
|
||||
return str(1)
|
||||
|
||||
port = request.args.get('port', 5379)
|
||||
port = request.args.get('port', 6383)
|
||||
|
||||
try:
|
||||
r = redis.Redis(f'{settings.SERVER_NAME}.node.nyc1.consul:{port}', db=1)
|
||||
|
|
Loading…
Add table
Reference in a new issue