Verified Commit 2cc1c72e authored by guglielmo's avatar guglielmo

transiction to redis-engine confirmed for django-constance

parent b7d75fdc
......@@ -13,3 +13,4 @@
docker-compose.yml
docker-compose.*.yml
Dockerfile
uwsgi.ini
......@@ -40,3 +40,6 @@ node_modules/
venv
dump.rdb
uwsgi.ini
......@@ -297,6 +297,11 @@ CONSTANCE_CONFIG = {
CONSTANCE_IGNORE_ADMIN_VERSION_CHECK = True
CONSTANCE_BACKEND = 'constance.backends.redisd.RedisBackend'
CONSTANCE_REDIS_CONNECTION = {
'host': env("REDIS_HOST", default="localhost"),
'port': 6379,
'db': 0,
}
# END CONSTANCE (LIVE SETTINGS) CONFIGURATION
# TASK_MANAGER CONFIGURATION
......
......@@ -10,8 +10,13 @@ services:
- "8000"
links:
- postgres:postgres
- redis:redis
depends_on:
- postgres
- redis
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASS}@postgres/${POSTGRES_DB}
- REDIS_HOST=redis
- DEBUG=${DEBUG}
- DEBUG_TOOLBAR_INTERNAL_IPS=${DEBUG_TOOLBAR_INTERNAL_IPS}
- DJANGO_LOG_LEVEL=INFO
......@@ -46,6 +51,8 @@ services:
- public:/app/public
links:
- web:web
depends_on:
- web
postgres:
restart: always
......@@ -60,11 +67,22 @@ services:
expose:
- "5432"
redis:
container_name: opsv_redis
restart: always
image: redis:latest
volumes:
- redis_data:/data
expose:
- "6379"
volumes:
public:
name: opsv_public
pg_data:
name: opsv_pg_data
redis_data:
name: opsv_redis_data
weblogs:
name: opsv_weblogs
......
......@@ -13,6 +13,7 @@ django-admin-row-actions
# live settings
django-constance[redis]
django-picklefield
# slack notifications
slackclient==2.0.0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment