Home > other >  Docker - compose. Yml redis installation has been restarted
Docker - compose. Yml redis installation has been restarted

Time:09-16

 
Version: "3.3"
Services:
Redis:
Image: redis: 6
Container_name: redis
The hostname: redis
Restart: always
Volumes,
-/opt/work/docker/docker - volumes/redis:/data
-/opt/work/docker/docker - files/redis/config/ect/redis/
Command:
-/bin/bash
- c
- redis - server/etc/redis/redis conf - requirepass "xDQz3Ts8s58pFVK5
"Ring: true
Ports:
- "0.0.0.0:6379-6379"
# run external call
# - "127.0.0.0:6379-6379"
# only allow the machine service call

The above is my yal file, I'm looking forward to redis docker containers have been restart, logs tip can't find the/etc/redis/redis conf this file, if I ignore configuration containers can run normally, but I am going to put the configuration file mapping out is wrong

CodePudding user response:

The above is my yaml file, I have been to restart docker - compose container redis but, docker logs tip can't find the/etc/redis/redis conf this file, if I ignore configuration file & lt; Redis. Conf> , the container can run normally, but I'm going to the configuration file mapping out is wrong
  • Related