des1roer
@des1roer
ученье - свет, а неученье - приятный полумрак

Redis в контейнере не видит?

3e18696274.jpg

конфиг

af6f162ba0.jpg

почему не видит редис?

redis_1 | 1:M 08 Jul 2020 09:29:38.891 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1 | 1:M 08 Jul 2020 09:29:38.891 # Server initialized
redis_1 | 1:M 08 Jul 2020 09:29:38.892 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
redis_1 | 1:M 08 Jul 2020 09:29:38.892 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1 | 1:M 08 Jul 2020 09:29:38.892 * Loading RDB produced by version 6.0.5
redis_1 | 1:M 08 Jul 2020 09:29:38.892 * RDB age 16 seconds
redis_1 | 1:M 08 Jul 2020 09:29:38.892 * RDB memory usage when created 0.77 Mb
redis_1 | 1:M 08 Jul 2020 09:29:38.892 * DB loaded from disk: 0.000 seconds
redis_1 | 1:M 08 Jul 2020 09:29:38.892 * Ready to accept connections
  • Вопрос задан
  • 47 просмотров
Пригласить эксперта
Ответы на вопрос 1
2ord
@2ord
продвинутый чайник
Попробуй так:
ports:
     - "6379:6379"
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы