Skip to content

Commit 20c7461

Browse files
committed
Fixed test failures because of missing cache
When running tests with ´test.sh´ some errors where logged because now redis-cache instance was running.
1 parent b9c44b8 commit 20c7461

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docker-compose.test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
depends_on:
66
- postgres
77
- redis
8+
- redis-cache
89
env_file: env/netbox.env
910
user: '101'
1011
volumes:
@@ -34,8 +35,15 @@ services:
3435
command:
3536
- sh
3637
- -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
3839
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
3947
volumes:
4048
netbox-static-files:
4149
driver: local

0 commit comments

Comments
 (0)