feat: update Docker configuration
Removed version specification from docker-compose.yml and added mysqli extension installation in Dockerfile.
This commit is contained in:
19
compose-env-redis/docker-compose.yml
Normal file
19
compose-env-redis/docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
3
compose-env-redis/redis.conf
Normal file
3
compose-env-redis/redis.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
# redis.conf
|
||||
maxmemory 250mb
|
||||
maxmemory-policy volatile-lru
|
||||
Reference in New Issue
Block a user