Git Product home page Git Product logo

Comments (2)

ggogel avatar ggogel commented on June 27, 2024 1

Hi Alex,

somebody asked this over at reddit. It sounded like it was quite a hassle for him but it is doable. First you need to make sure that seafile-server and seahub can access the external database, by not declaring their network as internal or by defining an additional external network.

In initialization, seafile takes the root credentials from the environment variables and initializes the database by creating the tables and a db user. The user is always called seafile and has a randomly generated password. The db host as well as the created db credentials are written into seahub.conf, ccnet.conf and seahub_settings.py.

So you can only define the db host and db root user for first initialization. Once this is done, those variables do nothing. If you would have root access, you could simply leave the db service out and define your server and credentials instead. Without root access, it's getting tricky though.

I would try to run the first setup with the db service such that it generates the whole config. Then change the db host in all three config files and create a user in your db that matches the username and password in the config files. Then throw out the db service and redeploy. You might also need to copy over the contents of the tables. Though it could be that simply creating the empty tables is enough. I'm not sure about this.

from seafile-containerized.

AlexanderProd avatar AlexanderProd commented on June 27, 2024

Thanks a lot for your detailed reply and pointing out that thread on reddit. That helped me quite a lot!

from seafile-containerized.

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.