Commit 672965ee authored by carlosribas's avatar carlosribas
Browse files

Create a container for memcached

parent f4f26648
......@@ -20,6 +20,7 @@ services:
networks:
- redis_network
- nginx_network
- memcached_network
# Redis server
redis:
......@@ -44,8 +45,21 @@ services:
networks:
- nginx_network
# Memcached server
memcached:
image: memcached:1.6.7-alpine
ports:
- "8052:8052"
command: memcached -m 512m -p 8052
depends_on:
- rnacentral
networks:
- memcached_network
networks:
redis_network:
driver: bridge
nginx_network:
driver: bridge
memcached_network:
driver: bridge
\ No newline at end of file
......@@ -316,7 +316,7 @@ MAINTENANCE_MODE = False
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'localhost:8052',
'LOCATION': 'memcached:8052',
},
'sitemaps': {
'BACKEND': 'rnacentral.utils.cache.SitemapsCache',
......
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