commit
27969fdade
2 changed files with 21 additions and 0 deletions
@ -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…
Reference in new issue