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

example of docker-compose.yml #60

Open
garanews opened this issue Jan 22, 2021 · 4 comments
Open

example of docker-compose.yml #60

garanews opened this issue Jan 22, 2021 · 4 comments

Comments

@garanews
Copy link

Can some one please provide a sample of docker-compose with couple of services where docker-nfs-server is configured and used?

@sergiobrr
Copy link

sergiobrr commented Feb 19, 2021

I'm using this

nfs:
    image: erichough/nfs-server:latest
    volumes:
      - ./app/auto_tagging/models:/mnt/autotagging_models
      - ./exports:/etc/exports
    ports:
      - 2049:2049
      - 2049:2049/udp
      - 32765:32765
      - 32765:32765/udp
      - 32767:32767
      - 32767:32767/udp
    cap_add:
      -  SYS_ADMIN
     privileged: true

@garanews
Copy link
Author

Hello @sergiobrr ,thanks for the config.
What I was looking for is a docker-compose with couple of services where one is the nfs server and the other is any service that uses it (webserver,whatever).
I ended up with confidence that is not possible have in the same docker-compose both nfs server and container that will use the nfs server because during build the first container is not (yet) resolved by internal dns.

@killmasta93
Copy link

@sergiobrr hi there, i was wondering these

      - ./app/auto_tagging/models:/mnt/autotagging_models
      - ./exports:/etc/exports

what variables did you put?

@AsteroidOrangeJuice
Copy link

Thanks for the example. It was helpful! However I had to add this to make it work:

         - 111:111
         - 111:111/udp
         

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants