From Synology to Docker

Currently reading
From Synology to Docker

245
47
NAS
DS918+, DS414j
Operating system
  1. Linux
  2. Windows
  3. other
Mobile operating system
  1. Android
Last edited:
Ok,
I've pretty much moved everything from Synology applications to containers.
The 3 remaining things are:
photo station
ftp
mail

What would people recommend?

Hmm... the Office and calendar containers (which I was in the process of spinning up, don't appear to be working for me so maybe ideas for those as well please).
 
You might want to overthink ftp, as typicaly you will need to publishd a huge range of ports for the passv port range, unless your container runs on --network host or a self created macvlan networks. Publishing a huge number of ports (even if its a range) will result in a painfully slow start of the container - with hundreds of ports we are speaking already about minutes...
 
You might want to overthink ftp, as typicaly you will need to publishd a huge range of ports for the passv port range, unless your container runs on --network host or a self created macvlan networks. Publishing a huge number of ports (even if its a range) will result in a painfully slow start of the container - with hundreds of ports we are speaking already about minutes...
Is there a container you'd recommend looking at?
Even if I wait for ftp until I move from Synology to a home built server. I've still the other items I could do with looking at. :)

Office (was trying onlyoffice but looks like they require a script to be run and multiple containers so may have to look elsewhere)
Calendar (with the intention of sharing with family obviously)
Photo Station (really would like to get this one replaced but have no-idea where to start).
mail server (only popped into my head writing the above and only really interested as it's a challenge).
 
Regarding a ftp server. In the good old days (like 20 years ago) I would have recommended glftpd, which was THE scene ftpd that was extensible like hell. I used to write extensions for glftpd long time ago :) Though, I have no idea what people use today. People stopped using ftp for filesharing when dropbox and a likes popped up. Thus said: why not run your own nextcloud instance for filesharing? If it's just for you to upload/manage stuff on the box you can still use sftp/scp for that - clients like winscp make it easy to work with sftp/scp servers.
 
Regarding a ftp server. In the good old days (like 20 years ago) I would have recommended glftpd, which was THE scene ftpd that was extensible like hell. I used to write extensions for glftpd long time ago :) Though, I have no idea what people use today. People stopped using ftp for filesharing when dropbox and a likes popped up. Thus said: why not run your own nextcloud instance for filesharing? If it's just for you to upload/manage stuff on the box you can still use sftp/scp for that - clients like winscp make it easy to work with sftp/scp servers.
It's too make it easier to transfer files when away from home.
As well as PhotoStructure.

Synology instructions here:

Will have a look at that as well thank you.
 
Last edited:
Sadly PhotoStructure is single user currently.
Think I've all but got piwigo working now including videos. :)

Just need to find:
office
shared calendar

mail server (as I said, just for the fun of it)
ftp server - looking at nextcloud.

EDIT:
Looks like nextcloud covers Calendar and Office :)
 
I only got Piwigo to work. The others are single user and as such sadly not of any use to me at the moment.
 
@Telos As I don't use the Synology interface and only use docker-compose I'm not sure I can write a tutorial as it would essentially be a docker-compose with "replace x with y" explanation. But if you're still interested I'm happy to look at publishing and explaining my docker-compose for any of the containers I now have running. :D
(Though one or two are me just testing (I prefer organizr to heimdall at the moment))
1613482569636.png
1613482664627.png
 
@one-eyed-king
Here's my docker-compose, things of note (for anyone reading)
I've created a network (called synology) within docker, so that I can specify that network to be allowed through the firewall.

Obviously, $PUID and $PGID are either configured by your .env or you need to specify them.
Also change the ports (if you want).
Finally, my containers are on my SSD cluster and not my HDD, anything I store goes on the "spinners" and anything I run goes on the "solid".
Code:
version: "3.5"

services:
  organizr:
    image: organizr/organizr:latest
    container_name: organizr
    ports:
      - 7001:433
      - 7000:80
    environment:
      - PUID=$PUID
      - PGID=$PGID
      - TZ=Europe/London
      - branch=v2-master
    volumes:
      - "/volume2/docker/organizr:/config"
    networks:
      - synology
    restart: always
networks:
  synology:
    external: true

What else would you like to know about it?
@Telos
Of note I've mounted the /config/www on my spinners as that's where the pictures are stored.
If you want to include video:
Code:
https://piwigo.org/ext/extension_view.php?eid=610
That needs to be extracted to your /www/gallery/plugins directory and then enabled in the interfact.
Also at that point it's worth adding LocalFileEditor plugin as well, (as per this page)
Code:
https://github.com/xbgmsharp/piwigo-videojs/wiki/How-to-add-videos
change the line from:
$conf['upload_form_all_types'] = false;
to
$conf['upload_form_all_types'] = true;
Code:
version: "2.1"
services:
  piwigo:
    image: ghcr.io/linuxserver/piwigo
    container_name: photos
    environment:
      - PUID=$PUID
      - PGID=$PGID
      - TZ=Europe/London
    volumes:
      - /volume2/docker/piwigo:/config
      - /volume1/pictures:/config/www
    ports:
      - 2342:80
    networks:
      - synology
    restart: always

networks:
  synology:
    external: true
 
Just wanted to say that Organizr is highly recommended. My compose looks slightly different, I have additionaly fpm: 'true' as env and I have the healthcheck enabled (though, its running in a swarm cluster).

Thanks for sharing, I am sure it will help others to bootstrap theirs :)
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

I am also trying to setup a Z-wave USB dongle and am getting stuck after following the same steps as...
Replies
1
Views
1,280
Thanks for your replies, but I found the solution: I had to allow port 8083 in the firewall.
Replies
5
Views
1,951
Thank you for this - I'll give it a go and see where I get - worst case I learn something as I go!
Replies
6
Views
1,738
You can run cmd.exe to get a command window from which you can execute SSH commands. However, my personal...
Replies
36
Views
3,788
For the heck of it, I just checked again in docker container, and it announced an update was available. I...
Replies
4
Views
469
  • Question
Do realize, that enabling any user to run docker containers is largely the same as giving that user full...
Replies
6
Views
1,061
Hello, I already have it configured perfectly with wireguard. I was looking at the Gluetun configuration...
Replies
4
Views
650

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top