File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ services:
5
5
depends_on :
6
6
- postgres
7
7
- redis
8
+ - redis-cache
8
9
env_file : env/netbox.env
9
10
user : ' 101'
10
11
volumes :
@@ -34,8 +35,15 @@ services:
34
35
command :
35
36
- sh
36
37
- -c # this is to evaluate the $REDIS_PASSWORD from the env
37
- - redis-server --requirepass $$REDIS_PASSWORD # # $$ because of docker-compose
38
+ - redis-server --appendonly yes -- requirepass $$REDIS_PASSWORD # # $$ because of docker-compose
38
39
env_file : env/redis.env
40
+ redis-cache :
41
+ image : redis:5-alpine
42
+ command :
43
+ - sh
44
+ - -c # this is to evaluate the $REDIS_PASSWORD from the env
45
+ - redis-server --requirepass $$REDIS_PASSWORD # # $$ because of docker-compose
46
+ env_file : env/redis-cache.env
39
47
volumes :
40
48
netbox-static-files :
41
49
driver : local
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ services:
57
57
- sh
58
58
- -c # this is to evaluate the $REDIS_PASSWORD from the env
59
59
- redis-server --requirepass $$REDIS_PASSWORD # # $$ because of docker-compose
60
- env_file : env/redis.env
60
+ env_file : env/redis-cache .env
61
61
volumes :
62
62
netbox-static-files :
63
63
driver : local
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ REDIS_DATABASE=0
20
20
REDIS_SSL = false
21
21
REDIS_CACHE_HOST = redis-cache
22
22
REDIS_CACHE_PASSWORD = t4Ph722qJ5QHeQ1qfu36
23
- REDIS_CACHE_DATABASE = 0
23
+ REDIS_CACHE_DATABASE = 1
24
24
REDIS_CACHE_SSL = false
25
25
SECRET_KEY = r8OwDznj!!dci#P9ghmRfdu1Ysxm0AiPeDCQhKE+N_rClfWNj
26
26
SKIP_STARTUP_SCRIPTS = false
You can’t perform that action at this time.
0 commit comments