1
0
Fork 0
mirror of https://github.com/librenms/docker.git synced 2026-01-23 02:14:48 +00:00

Remove memcached and use redis fully (#286)

This commit is contained in:
Tony Murray 2022-07-14 08:18:47 -05:00 committed by GitHub
parent cedde585f6
commit 6cece230da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 56 additions and 93 deletions

View file

@ -54,13 +54,6 @@ services:
- "MYSQL_PASSWORD=${MYSQL_PASSWORD}"
restart: always
memcached:
image: memcached:alpine
container_name: librenms_memcached
environment:
- "TZ=${TZ}"
restart: always
redis:
image: redis:5.0-alpine
container_name: librenms_redis
@ -81,7 +74,7 @@ services:
hostname: librenms
depends_on:
- db
- memcached
- redis
- msmtpd
volumes:
- "./librenms:/data"
@ -105,8 +98,8 @@ services:
- "DB_PASSWORD=${MYSQL_PASSWORD}"
- "DB_TIMEOUT=60"
- "REDIS_HOST=redis"
- "REDIS_PORT=6379"
- "REDIS_DB=0"
- "CACHE_DRIVER=redis"
- "SESSION_DRIVER=redis"
restart: always
dispatcher:
@ -131,8 +124,8 @@ services:
- "DB_TIMEOUT=60"
- "DISPATCHER_NODE_ID=dispatcher1"
- "REDIS_HOST=redis"
- "REDIS_PORT=6379"
- "REDIS_DB=0"
- "CACHE_DRIVER=redis"
- "SESSION_DRIVER=redis"
- "SIDECAR_DISPATCHER=1"
restart: always
@ -163,8 +156,8 @@ services:
- "DB_PASSWORD=${MYSQL_PASSWORD}"
- "DB_TIMEOUT=60"
- "REDIS_HOST=redis"
- "REDIS_PORT=6379"
- "REDIS_DB=0"
- "CACHE_DRIVER=redis"
- "SESSION_DRIVER=redis"
- "SIDECAR_SYSLOGNG=1"
restart: always
@ -194,5 +187,8 @@ services:
- "DB_USER=${MYSQL_USER}"
- "DB_PASSWORD=${MYSQL_PASSWORD}"
- "DB_TIMEOUT=60"
- "REDIS_HOST=redis"
- "CACHE_DRIVER=redis"
- "SESSION_DRIVER=redis"
- "SIDECAR_SNMPTRAPD=1"
restart: always

View file

@ -7,8 +7,6 @@ REAL_IP_HEADER=X-Forwarded-For
LOG_IP_VAR=http_x_forwarded_for
LIBRENMS_SNMP_COMMUNITY=librenmsdocker
MEMCACHED_HOST=memcached
MEMCACHED_PORT=11211
LIBRENMS_WEATHERMAP=false
LIBRENMS_WEATHERMAP_SCHEDULE=*/5 * * * *