Skip to content

Instantly share code, notes, and snippets.

@jose16-21
Created November 30, 2022 09:59
Show Gist options
  • Save jose16-21/d9ab00e016014e55eb1c521008c75243 to your computer and use it in GitHub Desktop.
Save jose16-21/d9ab00e016014e55eb1c521008c75243 to your computer and use it in GitHub Desktop.
docker-compose redis
version: '3.8'
services:
redis:
image: redis:6.2-alpine
container_name: redis
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
networks:
default:
name: mynetwork
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment