Replies: 9 comments 8 replies
-
Another workaround is to completely disable pgsql internally in Synology. Though some of Synology's store app depend on it, such as Video Station, Download Station, etc. If your NAS depend on it I wouldn't suggest do this step. DSM 7login via your ssh DSM 6DSM 6 uses synoservice, so replace Then you can install this docker via docker-compose. Making it work on SynologyPs. before using docker-compose, I recommend change and add a few docker yaml lines : services:
postgres:
image: postgres:13.0 ; using 13 defaults to the latest 13.7, which cause frequent database crash on my system
shm_size: 4g ; this fix reindexdb out of memory issue when cleaning database using Resolve's optimize database (use 100m instead if your nas is limited in RAM)
network_mode: "host" ; !!! BE SURE TO REMOVE 'ports : - 5432:5432' to avoid conflict !!!; without network host i couldn't get 2+ collaborators working together (Resolve will prompt network was blocked with firewall even though it wasn't)
...
pgbackups:
image: prodrigestivill/postgres-backup-local:13
network_mode: "host" ; BE SURE TO REMOVE 'links : - postgres && depends on : - postgres' since we are using network host, this line isn't necessary and will cause conflict
environment:
- POSTGRES_HOST=localhost ; this will connect to our local nas ip for postgres backup
...
... |
Beta Was this translation helpful? Give feedback.
-
@apvlv macvlan networks can be a bit finicky, I would probably just spin up a Virtual Machine on the NAS and then deploy the containers in there. @syakeef's solution would work but could break some things as he mentioned. @syakeef I haven't seen any of the issues with the current docker-compose file that you mentioned, maybe they are tied to Synology? How much ram does your model have? I'll link to this discussion in the readme |
Beta Was this translation helpful? Give feedback.
-
I'm running DS1621+ with 16GB of RAM. Yeah running postgresql in Synology is a bit finnicky currently. I would've hoped they would fix it by DSM 7 but I guess we might have to wait for another major update There might be another way without masking pgsql services by modifying Synology's internal pgsql port with |
Beta Was this translation helpful? Give feedback.
-
@syakeef that's unfortunate. Odd that Synology would do things that way. Hopefully they change things, if they do I'm happy to add some documentation on using it! I'm going to go ahead and convert this to a discussion until theres an easier way to fix this |
Beta Was this translation helpful? Give feedback.
-
Hi. Trying to solve this for myself, and I think I found a reasonable solution and wanted to share my findings with the community.
|
Beta Was this translation helpful? Give feedback.
-
Hello, I use macvlan and set the virtual ip address and port number according to it, merge the latest docker-compose file, and also need pgadmin to manage and back up the da Vinci database file, but input ip and address port number in pgadmin, and I can't connect to this postgre database all the time, tossing for a long time, hoping to get a reply solution. Or can't you merge a docker-compose file about Qunhui for me to test @elliotmatson @syakeef Thank you #---version: '3.8' below if you understand what you are doing.services: |
Beta Was this translation helpful? Give feedback.
-
Just dropping by to report that my PostgreSQL method described above works flawlessly for Resolve 18.6 |
Beta Was this translation helpful? Give feedback.
-
note:replace solutionthe easiest solution i have is: set the router dhcp ip pool end range to 192.168.1.200 using the following docker-compose.yml
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone, Thank you all for sharing your configs, they helped me a lot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Elliot,
thank you very much for this project. On synology servers the psql port 5432 is internally in use and cannot be used for exposing on docker and Resolve itself (imho) is not able to connect to the db over custom defined ports. One workaround I found is use a macvlan network with docker to create a virtual interface but I'm feeling it is too much risk and overhead just for a port problem (see: https://www.schaupper.at/synology-davinci-resolve-shared-database/).
do you know any other way to accomplish the project server install on synology?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions