mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
add db_ to db container names
This commit is contained in:
parent
95d499f6ae
commit
e2ec479913
2 changed files with 23 additions and 28 deletions
|
@ -10,17 +10,12 @@ services:
|
||||||
- DOCKERBUILD=True
|
- DOCKERBUILD=True
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
links:
|
|
||||||
- db_mongo
|
|
||||||
- postgres
|
|
||||||
- elasticsearch
|
|
||||||
- redis
|
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- db_mongo
|
- db_mongo
|
||||||
- postgres
|
- db_postgres
|
||||||
- redis
|
- db_redis
|
||||||
- elasticsearch
|
- db_elasticsearch
|
||||||
ulimits:
|
ulimits:
|
||||||
nproc: 10000
|
nproc: 10000
|
||||||
nofile:
|
nofile:
|
||||||
|
@ -40,10 +35,10 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- newsblur_web
|
- newsblur_web
|
||||||
- favicons
|
- favicons
|
||||||
- postgres
|
- db_postgres
|
||||||
- redis
|
- db_redis
|
||||||
- db_mongo
|
- db_mongo
|
||||||
- elasticsearch
|
- db_elasticsearch
|
||||||
- original_pages
|
- original_pages
|
||||||
- original_text
|
- original_text
|
||||||
- node_websocket
|
- node_websocket
|
||||||
|
@ -53,8 +48,8 @@ services:
|
||||||
- ./docker/nginx/nginx.local.conf:/etc/nginx/conf.d/nginx.conf
|
- ./docker/nginx/nginx.local.conf:/etc/nginx/conf.d/nginx.conf
|
||||||
- app-files:/srv/newsblur
|
- app-files:/srv/newsblur
|
||||||
|
|
||||||
postgres:
|
db_postgres:
|
||||||
container_name: postgres
|
container_name: db_postgres
|
||||||
image: postgres:13.1
|
image: postgres:13.1
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=newsblur
|
- POSTGRES_USER=newsblur
|
||||||
|
@ -64,11 +59,11 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/volumes/postgres:/var/lib/postgresql/data
|
- ./docker/volumes/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
redis:
|
db_redis:
|
||||||
image: redis:3.2.6
|
image: redis:3.2.6
|
||||||
ports:
|
ports:
|
||||||
- '6579:6579'
|
- '6579:6579'
|
||||||
container_name: redis
|
container_name: db_redis
|
||||||
volumes:
|
volumes:
|
||||||
- ./docker/volumes/redis:/data
|
- ./docker/volumes/redis:/data
|
||||||
- ./config/redis.conf:/usr/local/etc/redis_server.conf
|
- ./config/redis.conf:/usr/local/etc/redis_server.conf
|
||||||
|
@ -76,8 +71,8 @@ services:
|
||||||
- ./docker/volumes/redis.var.lib:/var/lib/redis
|
- ./docker/volumes/redis.var.lib:/var/lib/redis
|
||||||
command: redis-server --port 6579
|
command: redis-server --port 6579
|
||||||
|
|
||||||
elasticsearch:
|
db_elasticsearch:
|
||||||
container_name: elasticsearch
|
container_name: db_elasticsearch
|
||||||
image: elasticsearch:2.4.4
|
image: elasticsearch:2.4.4
|
||||||
ports:
|
ports:
|
||||||
- '9200:9200'
|
- '9200:9200'
|
||||||
|
@ -124,7 +119,7 @@ services:
|
||||||
- 3030:3030
|
- 3030:3030
|
||||||
command: node favicons.js
|
command: node favicons.js
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- db_postgres
|
||||||
volumes:
|
volumes:
|
||||||
- node-files:/usr/src/app
|
- node-files:/usr/src/app
|
||||||
|
|
||||||
|
@ -234,7 +229,7 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- nginx
|
- nginx
|
||||||
- newsblur_web
|
- newsblur_web
|
||||||
- redis
|
- db_redis
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
- 443:443
|
- 443:443
|
||||||
|
|
|
@ -33,7 +33,7 @@ ENFORCE_SIGNUP_CAPTCHA = False
|
||||||
CACHES = {
|
CACHES = {
|
||||||
'default': {
|
'default': {
|
||||||
'BACKEND': 'redis_cache.RedisCache',
|
'BACKEND': 'redis_cache.RedisCache',
|
||||||
'LOCATION': 'redis:6579',
|
'LOCATION': 'db_redis:6579',
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'DB': 6,
|
'DB': 6,
|
||||||
'PARSER_CLASS': 'redis.connection.HiredisParser'
|
'PARSER_CLASS': 'redis.connection.HiredisParser'
|
||||||
|
@ -80,7 +80,7 @@ DATABASES = {
|
||||||
#'ENGINE': 'django.db.backends.mysql',
|
#'ENGINE': 'django.db.backends.mysql',
|
||||||
'USER': 'newsblur',
|
'USER': 'newsblur',
|
||||||
'PASSWORD': 'newsblur',
|
'PASSWORD': 'newsblur',
|
||||||
'HOST': 'postgres',
|
'HOST': 'db_postgres',
|
||||||
'PORT': 5432
|
'PORT': 5432
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -100,31 +100,31 @@ MONGODB_SLAVE = {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Celery RabbitMQ/Redis Broker
|
# Celery RabbitMQ/Redis Broker
|
||||||
BROKER_URL = "redis://redis:6579/0"
|
BROKER_URL = "redis://db_redis:6579/0"
|
||||||
CELERY_RESULT_BACKEND = BROKER_URL
|
CELERY_RESULT_BACKEND = BROKER_URL
|
||||||
|
|
||||||
REDIS = {
|
REDIS = {
|
||||||
'host': 'redis',
|
'host': 'db_redis',
|
||||||
'port': 6579
|
'port': 6579
|
||||||
}
|
}
|
||||||
REDIS_PUBSUB = {
|
REDIS_PUBSUB = {
|
||||||
'host': 'redis',
|
'host': 'db_redis',
|
||||||
'port': 6579
|
'port': 6579
|
||||||
}
|
}
|
||||||
REDIS_STORY = {
|
REDIS_STORY = {
|
||||||
'host': 'redis',
|
'host': 'db_redis',
|
||||||
'port': 6579
|
'port': 6579
|
||||||
}
|
}
|
||||||
REDIS_SESSIONS = {
|
REDIS_SESSIONS = {
|
||||||
'host': 'redis',
|
'host': 'db_redis',
|
||||||
'port': 6579
|
'port': 6579
|
||||||
}
|
}
|
||||||
|
|
||||||
CELERY_REDIS_DB_NUM = 4
|
CELERY_REDIS_DB_NUM = 4
|
||||||
SESSION_REDIS_DB = 5
|
SESSION_REDIS_DB = 5
|
||||||
|
|
||||||
ELASTICSEARCH_FEED_HOSTS = ["elasticsearch:9200"]
|
ELASTICSEARCH_FEED_HOSTS = ["db_elasticsearch:9200"]
|
||||||
ELASTICSEARCH_STORY_HOSTS = ["elasticsearch:9200"]
|
ELASTICSEARCH_STORY_HOSTS = ["db_elasticsearch:9200"]
|
||||||
|
|
||||||
BACKED_BY_AWS = {
|
BACKED_BY_AWS = {
|
||||||
'pages_on_node': False,
|
'pages_on_node': False,
|
||||||
|
|
Loading…
Add table
Reference in a new issue