Docker image redis replace

 redis:
    image: redis:7.2.3-alpine
    restart: unless-stopped
    command: ["redis-server", "--appendonly", "yes", "--loglevel", "warning"]
    expose:
      - "6379"
    volumes:
      - ./.docker/database/redis:/data
    profiles:
      - redis

will it work if i replace redis image with dragonfly? what do i need to change to make it work?

 redis:
    image: docker.dragonflydb.io/dragonflydb/dragonfly
    restart: unless-stopped
    command: ["redis-server", "--appendonly", "yes", "--loglevel", "warning"]
    expose:
      - "6379"
    volumes:
      - ./.docker/database/redis:/data
    profiles:
      - redis

Docker image redis replace

Hi @yummy-koala , yes, replacing redis image with dragonfly is enough to make it work!

root@minifast:~/docker/NodeBB-3.6.1# docker compose --profile redis up
[+] Running 2/0
 ✔ Container nodebb-361-redis-1   Recreated                                                                     0.0s
 ✔ Container nodebb-361-nodebb-1  Created                                                                       0.0s
Attaching to nodebb-361-nodebb-1, nodebb-361-redis-1
nodebb-361-redis-1   | /usr/local/bin/entrypoint.sh: 22: exec: redis-server: not found
nodebb-361-redis-1 exited with code 0
nodebb-361-redis-1 exited with code 127
nodebb-361-redis-1 exited with code 127

unfortunately not

you can remove the command field, dragonfly will start automatically when the container is created

yea, fixed that

thanks