Removed version specification from docker-compose.yml and added mysqli extension installation in Dockerfile.
19 lines
561 B
YAML
19 lines
561 B
YAML
services:
|
|
redis:
|
|
image: redis:7.2-alpine
|
|
container_name: laravel_redis
|
|
command:
|
|
- redis-server
|
|
- --maxmemory 300mb
|
|
- --maxmemory-policy allkeys-lru
|
|
- --requirepass 1234567890 # Change to strong password
|
|
ports:
|
|
- "127.0.0.1:6379:6379" # Bind only to localhost
|
|
volumes:
|
|
- /Volumes/HDD_MINI/dev_docker/docker_redis:/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "--no-auth-warning", "-a", "1234567890", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3 |