Last active
          September 12, 2023 20:05 
        
      - 
      
- 
        Save HRKings/322a5bebed27df70a4115e544c8b9c05 to your computer and use it in GitHub Desktop. 
    Redis Template Docker Compose File
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: "3.9" | |
| services: | |
| redis: | |
| container_name: redis | |
| image: redis:alpine | |
| environment: | |
| REDIS_PASSWORD: ${REDIS_PASSWORD:-password} | |
| command: /bin/sh -c 'redis-server --appendonly yes --requirepass "$${REDIS_PASSWORD}"' | |
| volumes: | |
| - ./redis:/data | |
| ports: | |
| - "6379:6379" | |
| restart: unless-stopped | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment