fix(docker): Use named volume for Redis to fix permission errors
Replace bind mount with Docker named volume for Redis data This fixes 'operation not permitted' errors on macOS Docker Desktop where bind mounts fail due to file sharing restrictions
This commit is contained in:
parent
0ea2ac00cd
commit
6d200b5ac2
2 changed files with 3 additions and 8 deletions
|
|
@ -23,7 +23,7 @@ services:
|
|||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ${FETCHML_REPO_ROOT:-..}/data/dev/redis:/data
|
||||
- redis_data:/data
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly yes
|
||||
healthcheck:
|
||||
|
|
@ -218,6 +218,8 @@ services:
|
|||
# depends_on:
|
||||
# - loki
|
||||
volumes:
|
||||
redis_data:
|
||||
driver: local
|
||||
prometheus_data:
|
||||
driver: local
|
||||
grafana_data:
|
||||
|
|
|
|||
|
|
@ -7,13 +7,6 @@ set -e
|
|||
echo "=== FetchML Native Library Test with Redis ==="
|
||||
echo ""
|
||||
|
||||
# Create data directories if they don't exist (fixes Docker mount permission issues)
|
||||
echo "Creating data directories..."
|
||||
mkdir -p data/dev/redis
|
||||
mkdir -p data/dev/logs
|
||||
mkdir -p data/dev/experiments
|
||||
mkdir -p data/dev/active
|
||||
|
||||
# Check if native libraries are built
|
||||
if [ ! -f "native/build/libqueue_index.so" ] && [ ! -f "native/build/libqueue_index.dylib" ]; then
|
||||
echo "Building native libraries..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue