Created
July 23, 2020 09:36
-
-
Save steklopod/78fa1e09d17778a2d309f6b04f9a7141 to your computer and use it in GitHub Desktop.
Redis docker
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.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