# Packaging Docmost

**URL:** https://forum.yunohost.org/t/packaging-docmost/40621
**Category:** Apps packaging
**Tags:** french, english
**Created:** [October 29, 2025, 7:23am UTC](https://forum.yunohost.org/t/packaging-docmost/40621 "2025-10-29T07:23:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BowgartField](https://forum.yunohost.org/user_avatar/forum.yunohost.org/bowgartfield/32/12075_2.png) [@BowgartField](https://forum.yunohost.org/u/BowgartField)
#### Post date: [October 29, 2025, 7:23am UTC](https://forum.yunohost.org/t/packaging-docmost/40621/1 "2025-10-29T07:23:49Z")

</div>

Hi guys,  
i’m trying to package [docmost](https://docmost.com/docs/).  
But I’m facing 3 majors problemes:

1. App configuration is only based on env var.  
Can the install script push a .env template in install folder, then I have a custom script that load the .env in app memory then run `pnpm start` ?  
Because i’m not sure that nodejs by default load .env file in prod env.

2. The app needs a redis. How can i install this efficiency ?

3. LDAP is available but it needs to be set in the app.  
I guess that the conf is saved in postgresql.

Thank for help !

---

<div class="post-metadata">

### Author: ![Tho](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tho/32/3667_2.png) [@Tho](https://forum.yunohost.org/u/Tho)
#### Post date: [October 29, 2025, 8:18am UTC](https://forum.yunohost.org/t/packaging-docmost/40621/2 "2025-10-29T08:18:06Z")

</div>

Hello! Lots of apps have a .env file (I say it’s the common way to do). If you add `EnvironmentFile= __INSTALL_DIR__ ` in the systemd service it will be handled during its execution

For redis, there is a helper (you have to add redis-server in the deps).

You can have a look at [GitHub - YunoHost-Apps/fittrackee\_ynh: FitTrackee package for YunoHost 🚴](https://github.com/yunohost-apps/fittrackee_ynh) both for the .env and for redis (it’s a python package but the way of doing is the same)

---

<div class="post-metadata">

### Author: ![BowgartField](https://forum.yunohost.org/user_avatar/forum.yunohost.org/bowgartfield/32/12075_2.png) [@BowgartField](https://forum.yunohost.org/u/BowgartField)
#### Post date: [October 29, 2025, 10:48am UTC](https://forum.yunohost.org/t/packaging-docmost/40621/3 "2025-10-29T10:48:04Z")

</div>

Thanks for reply !  
Gonna check on this 🙂
