Closed
Description
Hello,
I try to run redis server with a custom config via docker compose.
I got the following docker-compose.yml
file:
version: '3'
services:
web:
build: .
command: bundle exec puma -C config/puma.rb
volumes:
- ./log:/app/log
- ./tmp:/app/tmp
ports:
- 9292:9292
environment:
- RACK_ENV=production
- REDIS_URL=redis://redis:6379
depends_on:
- redis
redis:
image: redis:alpine
volumes:
- ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
command:
- redis-server /usr/local/etc/redis/redis.conf
Unfortunately, I got an error:
$ docker-compose up
redis_1 | 1:C 04 Feb 21:06:51.504 # Fatal error, can't open config file 'redis-server /usr/local/etc/redis/redis.conf'
redis_1 exited with code 1
web_1 | Puma starting in single mode...
web_1 | * Version 3.11.2 (ruby 2.5.0-p0), codename: Love Song
web_1 | * Min threads: 1, max threads: 1
web_1 | * Environment: production
web_1 | * Listening on tcp://0.0.0.0:9292
web_1 | Use Ctrl-C to stop
However, the file does exist. I can run redis service and see it
$ docker-compose run redis /bin/sh
$ ls -lt /usr/local/etc/redis/redis.conf
-rw-rw-r-- 1 1000 1000 57845 Feb 4 20:43 /usr/local/etc/redis/redis.conf
It is strange to me that user and group is 1000.
Maybe it causes the issue?
Could you please help to figure it out?
Metadata
Metadata
Assignees
Labels
No labels