-
-
Save netologist/eac0c42e8ae150eb05ac08dd8c016bf3 to your computer and use it in GitHub Desktop.
redis docker-compose
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
REDIS_HOST='0.0.0.0' | |
REDIS_PORT='6379' | |
REDIS_PASSWORD='password' | |
REDISINSIGHT_PORT='5540' |
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
services: | |
redis: | |
image: redis:latest | |
container_name: redis | |
restart: always | |
ports: | |
- ${REDIS_PORT}:6379 | |
networks: | |
- redis_network | |
volumes: | |
- redis_data:/db | |
command: | |
- --requirepass ${REDIS_PASSWORD} | |
insight: | |
image: redislabs/redisinsight:latest | |
container_name: insight | |
restart: always | |
depends_on: | |
- redis | |
ports: | |
- ${REDISINSIGHT_PORT}:5540 | |
networks: | |
- redis_network | |
volumes: | |
- redisinsight_data:/data | |
networks: | |
redis_network: | |
driver: bridge | |
volumes: | |
redis_data: | |
driver: local | |
redisinsight_data: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment