Skip to content

Commit 5c4e7c1

Browse files
committed
Pass redis hostname to docker image
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 129bd9b commit 5c4e7c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ services:
1212

1313
vulnerablecode_redis:
1414
image: redis
15+
# Enable redis data persistence using the "Append Only File" with the
16+
# default policy of fsync every second. See https://redis.io/topics/persistence
17+
command: redis-server --appendonly yes
1518
volumes:
1619
- vulnerablecode_redis_data:/data
1720
restart: always

docker.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ POSTGRES_PASSWORD=vulnerablecode
55
VULNERABLECODE_DB_HOST=db
66
VULNERABLECODE_STATIC_ROOT=/var/vulnerablecode/static/
77

8-
VULNERABLECODE_REDIS_HOST=redis
8+
VULNERABLECODE_REDIS_HOST=vulnerablecode_redis

0 commit comments

Comments
 (0)