Code Monkey home page Code Monkey logo

Comments (6)

ViViDboarder avatar ViViDboarder commented on June 5, 2024 2

There are a few different types of volumes. What you are describing name:/path is a named volume. For this type of volume, docker will create an empty directory within your docker runtime path and mount it to the destination listed within the container. In other words docker_volume_name:/destination/within/container.

In the example I linked, I am using a bind mount with a relative path. In this type of volume is described as ./local/path/relative/to/compose:/destination/within/container. The left (source) side can be an absolute path too, if you wish.

It's common to use a bind mount to bind config files from the host machine to the container. Named volumes like you're using are common for data volumes where there is really data from the outside you're trying to mount into it. You're only trying to tell Docker to keep this directory in a named volume so it persists when containers are destroyed or recreated.

Here's the Docker Compose documentation on volumes for reference.

With that background done, the spoilers on what you need to do is the following: ./config/config.toml:/config.toml.

from vaultwarden_ldap.

lSh4dowl avatar lSh4dowl commented on June 5, 2024 1

Ok thank you, after some searching around I found I will have to do some work on my LDAP. So closing this now.
Thanks again for your friendly help and explanation. Huge help.
I wish you a nice day 👍

from vaultwarden_ldap.

ViViDboarder avatar ViViDboarder commented on June 5, 2024

The way you're mounting config volume is incorrect.

Check out the example: https://github.com/ViViDboarder/bitwarden_rs_ldap/blob/master/docker-compose.yml#L8

from vaultwarden_ldap.

lSh4dowl avatar lSh4dowl commented on June 5, 2024

Could you give me an example with my file path please. I do not understand the Syntax in the Example. I thought volumes should be created with name:/path.
I only installed Docker for bitwardenrs, so please forgive my inexperience, I am trying to learn, as I have never seen this way of creating volumes before.

from vaultwarden_ldap.

lSh4dowl avatar lSh4dowl commented on June 5, 2024

Wow, thanks for that great explanation.

After following your advice, I am greeted with another error:
thread 'main' panicked at 'rc=1 (operationsError), dn: "", text: "00002020: Operation unavailable without authentication"', src/main.rs:22:9

Does that mean the credentials for my LDAP Login are wrong or that my login for the local bitwardenrs Server is not working ? :)

from vaultwarden_ldap.

ViViDboarder avatar ViViDboarder commented on June 5, 2024

That's a great question. The panic doesn't show very much. Are there other log messages? In most error cases, I log out some message, but there are a few in the LDAP connection that do not. In other words, if there is no other indication, I'd say it's your LDAP connection.

from vaultwarden_ldap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.