зеркало из
				https://github.com/iharh/notes.git
				synced 2025-10-31 05:36:08 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			24 строки
		
	
	
		
			818 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 строки
		
	
	
		
			818 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| https://hub.docker.com/_/redis
 | |
| 
 | |
| 2024
 | |
| https://habr.com/ru/articles/823936/
 | |
|     ...
 | |
|     command: redis-server --requirepass ...
 | |
|     ...
 | |
| 
 | |
|       sh -c '
 | |
|         mkdir -p /usr/local/etc/redis &&
 | |
|         echo "bind 0.0.0.0" > /usr/local/etc/redis/redis.conf &&
 | |
|         echo "requirepass $REDIS_PASSWORD" >> /usr/local/etc/redis/redis.conf &&
 | |
|         echo "appendonly yes" >> /usr/local/etc/redis/redis.conf &&
 | |
|         echo "appendfsync everysec" >> /usr/local/etc/redis/redis.conf &&
 | |
|         echo "user default on nopass ~* +@all" > /usr/local/etc/redis/users.acl &&
 | |
|         echo "user $REDIS_USER on >$REDIS_USER_PASSWORD ~* +@all" >> /usr/local/etc/redis/users.acl &&
 | |
|         redis-server /usr/local/etc/redis/redis.conf --aclfile /usr/local/etc/redis/users.acl
 | |
|       '
 | |
| 
 | |
| bind 0.0.0.0
 | |
| port 6379
 | |
| protected-mode no
 | |
| save 60 1
 | 
