Comments (2)
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.
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)
- Support for the notification server HOT 2
- `gc_cron` in `start.sh` runs on every `docker compose restart` HOT 1
- Support for video thumbnails HOT 4
- Notification server seems to not work properly HOT 15
- Support for Kubernetes (K8s) HOT 5
- Action Required: Fix Renovate Configuration
- Unable to log into web interface since upgrade HOT 25
- Seafile V 11.0.2 "sluggish" HOT 2
- waiting for mysql server to be ready: %s (2003, "Can't connect to MySQL server on 'db' (timed out)") HOT 2
- Support for FUSE extension HOT 6
- Seafile doesn't come up after rebuilding the images today HOT 2
- Emails are not being send HOT 2
- reset_admin.sh HOT 2
- Support initializing mysql database over IPv6 HOT 2
- building on oci/arm64 HOT 5
- Support for Seafile Professional Edition HOT 10
- Run server using non-root user HOT 4
- /scripts/gc.sh does no end HOT 16
- Communication problems between containers HOT 9
- Is it a best practice to `docker compose exec seafile-server bash ` to the container to enable sefdav? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seafile-containerized.