to set Redis
password ,just put password value at
.docker-compose/
directory as .redis_pass_file
file, or use the sample:
cp .docker-compose/.redis_pass_file.local .docker-compose/.redis_pass_file
Clients on the same machine, can join this service by define an external network,
for example when the client network name is sample-network
it should define as:
networks:
sample-network:
external:
name: redis_redis-network
The external
network name, has two part, which are separated by an underline, redis
is name of the repository, and redis-network
is the network name of this repository