Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose usage #65

Closed
PabloSzx opened this issue May 31, 2022 · 6 comments
Closed

Docker compose usage #65

PabloSzx opened this issue May 31, 2022 · 6 comments
Labels
question Further information is requested

Comments

@PabloSzx
Copy link

PabloSzx commented May 31, 2022

What's the expected docker-compose usage?

image

and is it possible to use docker port binding?

tested dragonfly --port 6379 --network=host --ulimit memlock=-1 and it doesn't work either

@romange
Copy link
Collaborator

romange commented May 31, 2022

I verified that docker run -p 6379:6379 --network=host --ulimit memlock=-1 dragonfly works with port binding. Will come back to you regarding docker compose

@romange romange added the question Further information is requested label May 31, 2022
@zacharya19
Copy link
Contributor

zacharya19 commented May 31, 2022

This is not a docker-compose issue; you're trying to pass flags to Dragonfly unrelated to it, but to docker (such as, rm, ulimit, network), try removing those params and it should work.
Instead of network host, use docker-compose port forwarding, and you can use ulimit param, e.g.:

ulimits:
      memlock: -1

@zacharya19
Copy link
Contributor

Try this instead:

version: '3.8'
services:
  cache:
    image: docker.dragonflydb.io/dragonflydb/dragonfly
    ulimits:
      memlock: -1
    ports:
      - 6379:6379

@romange
Copy link
Collaborator

romange commented May 31, 2022

What @zacharya19 said.

@romange
Copy link
Collaborator

romange commented Jun 1, 2022

@PabloSzx did it work for you? Can we close?

@PabloSzx
Copy link
Author

PabloSzx commented Jun 1, 2022

yep, it works, thank you

@PabloSzx PabloSzx closed this as completed Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants