Code Monkey home page Code Monkey logo

Comments (7)

Philipinho avatar Philipinho commented on July 23, 2024 1

-e DB_PASS_FILE=/etc/wikijs-sitemap/.db-secret \ -v /etc/wikijs-sitemap/.db-secret:/etc/wiki/.db-secret:ro \ it seems that DB_PASS_FILE does not allow other dirs than yours?

From the line above, there is an error here -v /etc/wikijs-sitemap/.db-secret:/etc/wiki/.db-secret:ro. Notice the wrong path given/etc/wiki/.db-secret:ro? which should be -v /etc/wikijs-sitemap/.db-secret:/etc/wikijs-sitemap/.db-secret:ro.

from wikijs-sitemap.

Philipinho avatar Philipinho commented on July 23, 2024

To use a database password file, first ensure the password file /etc/wiki/.db-secret exists by creating it with vi /etc/wiki/.db-secret and adding your Wiki.js db password.

Then, include -e DB_PASS_FILE=/etc/wiki/.db-secret -v /etc/wiki/.db-secret:/etc/wiki/.db-secret:ro in your container setup to securely link the password.

Let me know if you are still having issues.

from wikijs-sitemap.

DarkDau avatar DarkDau commented on July 23, 2024

ok, your setup works.
Thank you.
But it do not work with a different directory.
even aanother dir in /etc doesnt work.
Unable read DB_PASS_FILE secret env variable: Error: ENOENT: no such file or directory, open '/etc/wikijs-sitemap/.db-secret'
This File /etc/wikijs-sitemap/.db-secret is readable for all.
-e DB_PASS_FILE=/etc/wikijs-sitemap/.db-secret \ -v /etc/wikijs-sitemap/.db-secret:/etc/wiki/.db-secret:ro \
it seems that DB_PASS_FILE does not allow other dirs than yours?

from wikijs-sitemap.

Philipinho avatar Philipinho commented on July 23, 2024

Are you sure you created the password file in the directory of your choice? AFAIK, DB_PASS_FILE is not limited to any file path.

from wikijs-sitemap.

DarkDau avatar DarkDau commented on July 23, 2024

I will try. thank you.
It seems I still misunderstand the volume concept.
I come back with result shortly.

from wikijs-sitemap.

DarkDau avatar DarkDau commented on July 23, 2024

Yes it really works.
Thank you a lot for your time!

from wikijs-sitemap.

Philipinho avatar Philipinho commented on July 23, 2024

Glad to hear.

from wikijs-sitemap.

Related Issues (10)

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.