File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
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
You can’t perform that action at this time.
0 commit comments