Redis Commander 在 Local 端跑
先把這個弄成一個 File 可叫做 docker-compose.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| version: '3' services: redis: container_name: redis hostname: redis image: redis ports: - "6379:6379"
redis-commander: container_name: redis-commander hostname: redis-commander image: rediscommander/redis-commander:latest restart: on-failure environment: - REDIS_HOSTS=local:redis:6379 ports: - "8081:8081"
|
然後 Run 下面這行指令