I kbow I had determined that Docker wasnt soemthing I really needed but man, seems like all the self-hosted bookmark manager programs have a docker install walkthru over having a basoc non-Docker installation method.

Looking at ThinkDashboard, Linkding, Shiori today

#SelfHosting #BookmarksManager #NoCloud

@Catwoman69y2k perhaps these authors think that the Dockerfile is readable enough, and you could adapt the recipe for your system?

@GuillaumeRossolini Yeah. Now, for a little background... I have been very much a "keep it simple" type person. Generally, I roll out website sandboxes in my /var/www/html , got the LAMP stack setup for that, sticking to just a few ports to use for these various things. Usually just set databases up manually, if need be.

I have explored the idea of using Docker but it just seems like I dont really have a use case for having that extra layer.

@Catwoman69y2k I used to work like that too, then I tried containers and I LOVE how they let me apply system updates without breaking my stuff

@GuillaumeRossolini yeah. Most of what i do is just rolling out sandboxes. When I was working on installing Mediawiki, MW's documentation showed something that suggested maybe i couldnt install more than one instance of mediawiki. That wasnt actually the case, but it did have me briefly thinking of containers.

Really haven't had too much use for containerizing stuff but, back then, I did wonder if maybe it would help with stuff related to setting stuff up on same/similar ports. I do things for this in a real basic fashion, right now.

@GuillaumeRossolini May I ask which OS your server runs on? What do you use for the "container"ization? (I do see Docker runs containers and they have a GUI called Docker Desktop)

Asking bc my simple setup has most staged websites in /var/www/html under a subfolder. All sites/subfolders in var/www/html are accessible tp the outside world via A DynDNS address -- mysiteexample.endofinternet.net:8008/mywebsitefolder

#DockerDesktop #Docker #Containerization #LAMPStack #DynDNS

@Catwoman69y2k that’s the thing: the host OS doesn’t matter much

As long as the kernel of your OS can run other distributions, you’ll be fine

For example, Docker on macOS is fine running plenty of Linux distributions

For Windows, you have the choice of running native windows containers (provided your windows is a Pro version), or using virtualization to run Linux containers

I don’t recommend Docker for Desktop, it seems cool at first but there are issues with almost every update… If you have a windows PC, don’t use that GUI but instead apply a combination of WSL and netsh powershell rules

Anyway your server is unlikely to be on windows, I imagine? I’m using raspberry pi’s

The learning curve is a little steeper on windows

@GuillaumeRossolini Yeah Im on Ubuntu. I do have docker 29.1.5 installed (but not Docker Desktop).

@Catwoman69y2k great! You can easily try a few commands (that I can’t share here because double dash gets conflated) but there are plenty of resources

The thing to understand is that
docker run is to try stuff but it isn’t meant for services that need to stay up
docker service is a better for long term because any crash gets a restart by default
docker stack makes it easier to manage several services, group them together or separate them
docker swarm is the same thing but with several computers (nodes) to spread the load

The last two work with docker-compose

If you’d like examples, feel free to look at
https://github.com/GuillaumeRossolini/rpi-home/blob/main/docker-compose/pihole.yml
(There’s a README in the root folder)

@GuillaumeRossolini and now I can say...success. I have a Linkwarden living on my server now. Im now going to stuff it with all the links I ever need to keep track of.

I anticipate finding much link-rot in my bookmark file

@Catwoman69y2k another example I forgot to mention, but you don’t seem to have needed it, is in case you want to build a custom docker image

People might tell you that you need to push the custom image on a registry, but this isn’t required

See the comments in this file here

https://github.com/GuillaumeRossolini/griotte/blob/main/docker-compose.yml

griotte/docker-compose.yml at main · GuillaumeRossolini/griotte

GR IoT. Contribute to GuillaumeRossolini/griotte development by creating an account on GitHub.

GitHub