Where is app.yml for Synology Docker Discourse?

unsupported-install

(T3) #1

Where is the app.yml file for Synology Docker Discourse?

I’m trying to change the system email SMTP setting as I discovered that the Discourse is not able to send out email now. An ex-staff installed the Docker Discourse on the Synology, so I’ve no idea how he did it.

I got these instructions from Google search:

Check and edit the settings in your containers/app.yml file.

cd /var/discourse
./launcher rebuild app

The problem is that app.yml is nowhere to be found. /var/discourse is an empty directory.

I ran this command as superuser at root:
time find . -name "app.yml"

There are zero results.

In my Synology web control panel, I can see the Discourse container. When I click on it, the Discourse forum webpage appears. That’s all.

How can I derive more information about where the Discourse SMTP settings are stored?


(Michael Friedrich) #2

IIRC NAS devices don’t have local storage, but they map/install application data onto the HDDs provided.

Seems Discourse is available as official add-on: Discourse - Add-on Packages | Synology Inc.
Digging deeper, this is a proprietary format with .spk. Can be extracted with tar.

https://archive.synology.com/download/Package/spk/Docker-Discourse/1.2.1-0010/
https://forum.synology.com/enu/viewtopic.php?t=10575

Guess you would need to extract the data, re-build the spk file and then deploy this app again. Maybe Synology support know more about their packages, or the Discourse package maintainer over there.

I don’t have a Synology at hand, but it seems they have their own way to package Docker images and run them.


(Jay Pfaffman) #3

You’ll need to ask the synology folks how their system works.


(Willemb2) #4

The Synology package does not use app.yml for the email settings. But we also could not receive the activation email while Synology support confirmed the email settings were not the problem. They did not tell what it was, but in the Docker logs I see errors that sound bad, like “duplicate key value violates unique constraint” and “Broken pipe”.

Synology has developed its own Docker image for Discourse. To me it looks like their version 1.2.1 is broken. They say they are working on 1.3.10 but having trouble with “a database scheme that has changed”. IMHO they’d better use the official Discourse image, but only for models with enough RAM to allow Docker to claim 1 GB for a container.

For our Discourse pilot we ended up on an old low power PC with 4 GB and Lubuntu 16.04 LTS. With these excellent instructions and hardly any Unix experience I got it working.


(Jay Pfaffman) #5

Do you really mean Discourse 1.3.10? The current version is 1.9. That’s not really going to help.


(Willemb2) #6

Yes, that’s what they wrote me. And that’s what I replied to them.

They have their own 100% GUI install system called the Package Center. That’s why their packages are always a little behind. Like their WordPress is now 4.9.1 while mainstream is 4.9.4. That’s not bad. But their Discourse package is 3 years behind. Here on meta or on Synology forums I cannot find evidence of anyone successfully using it.


(Jay Pfaffman) #7

It’s hard for me to come up with a reason to run Discourse on a NAS beyond proof of concept.


(Willemb2) #8

Agree, a proof of concept was indeed our purpose.

But don’t underestimate their NASses :wink:


(Andrew Waugh) #9

I’ve been fiddling with this a bit.

Using the Syno Docker install you can select the official Discourse/base

Map a share (/volume1/docker/discourse) to /var/discourse
make a symbolic link /var/discourse to the share

git pull works
./discourse-setup works
./launcher works (it complains about docker CE version, but stop/start/rebuild work)

Haven’t managed to get the web interface up, but it’s probably my own ignorance.