Advertisement
AlexSledge

Wekan on Synology DSM

Nov 11th, 2015
7,638
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.47 KB | None | 0 0
  1. To install Wekan on a Synology DSM 5.2+ device, this seems to be the quickest method:
  2.  
  3. Environmental:
  4. Ensure the port you wish to use for Wekan is forwarded by your router to the Synology DS. In this example, port 8080 should be forwarded.
  5.  
  6. In the Synology DSM Web UI:
  7. 1) Install the official Synology Docker app using Package Center.
  8. 2) Launch Docker
  9. 3) In the Registry tab of Docker, search the registry for MongoDB, and download it (mongo:latest)
  10. 4) Search the registry for Wekan, download it (mquandalle/wekan:latest)
  11. 5) Using DSM File Station, create a folder where you wish MongoDB to store its data files. I suggest under the /volume1/docker folder, which is created when you install the official Synology Docker package.
  12.  
  13. ===== If you prefer to SSH in and create the directory via the command line:
  14. DiskStation> cd volume1/docker/
  15. DiskStation> mkdir mongodb
  16. DiskStation> chown 999:users mongodb/
  17. =====
  18.  
  19. 6) In the Docker Images tab, go to the image for mongo and then "Launch with Docker Run" command, using the -v flag to identify your new folder as the location for the MondoDB data files:
  20.  
  21. docker run -d --name Wekan-db -v /docker/mongodb:/data/db mongo
  22.  
  23. - Check the box for "Automatically map ports (Container ports range 49153-65535)", then click "Next"
  24. - Check "Create shortcut on desktop" (This would be the DSM Desktop, not your OS), then click "Next"
  25. - Check "Run this container after the wizard finishes", then click "Apply".
  26.  
  27. Note: The "-v /docker/mongodb:/data/db" part of the command mounts the /docker/mongodb directory from the underlying host system as /data/db inside the container, where MongoDB will write its data files by default.
  28.  
  29. 7) Go to the image for Wekan and "Launch with Docker Run". In the example below, replace the URL with the root URL for your Wekan instance, and replace 8080 with the port of your choosing, in order to redirect Wekan off its default port of 80, which is already used by Synology DSM:
  30.  
  31. docker run -d --name Wekan --link "Wekan-db:db" -e "MONGO_URL=mongodb://db" -e "ROOT_URL=http://wekan.example.com" -p 8080:80 mquandalle/wekan
  32.  
  33. - Check the box for "Automatically map ports (Container ports range 49153-65535)", then click "Next"
  34. - Check "Create shortcut on desktop" (This would be the DSM Desktop, not your OS), then click "Next"
  35. - Check "Run this container after the wizard finishes", then click "Apply".
  36.  
  37. 8) Wait a minute or two, then connect to your Wekan URL: http://wekan.example.com:8080
  38.  
  39. 9) Enjoy.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement