Skip to content

Instantly share code, notes, and snippets.

@steklopod
Created July 23, 2020 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steklopod/78fa1e09d17778a2d309f6b04f9a7141 to your computer and use it in GitHub Desktop.
Save steklopod/78fa1e09d17778a2d309f6b04f9a7141 to your computer and use it in GitHub Desktop.
Redis docker
version: "3.7"
# docker-compose up --d --build --force-recreate redis
services:
redis:
image: redis:alpine
container_name: redis
hostname: redis
command: redis-server --requirepass 123456
restart: unless-stopped
ports:
- 6379:6379
networks:
- redis-net
volumes:
- redis-data:/data
networks:
redis-net:
volumes:
redis-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment