sundayenglish 2 years ago
commit 27969fdade
  1. 6
      README.md
  2. 15
      docker-compose.yml

@ -0,0 +1,6 @@
# RUN
run `docker compose up -d`
# Access Container Docker
run `docker exec -it redis-redis-service-1 bash`
# Access Redis
redis-cli -h 127.0.0.1 -p 6379

@ -0,0 +1,15 @@
version: '3.3'
services:
redis-service:
image: redis:latest
restart: always
ports:
- "6379:6379"
volumes:
- ./:/root/redis
- ./redis.conf:/usr/local/etc/redis/redis.conf
environment:
- REDIS_PASSWORD=A@1qaz2wsxA@
- REDIS_PORT=6379
- REDIS_DATABASES=16
Loading…
Cancel
Save