Docker-compose , anyway to specify a redis.conf file?

后端 未结 4 1368
无人共我
无人共我 2021-02-05 02:03

my redis container is defined as he standard image in my docker_compose.yml

redis:  
  image: redis
  ports:
    - \"6379\"

I guess it\'s using

4条回答
  •  孤城傲影
    2021-02-05 02:40

    Old question, but if someone still want to do that, it is possible with volumes and command:

    command: redis-server /usr/local/etc/redis/redis.conf
    volumes:
     - ./redis/redis.conf:/usr/local/etc/redis/redis.conf
    

提交回复
热议问题