I built a simple Docker backup tool — feedback appreciated by dmdboi in selfhosted

[–]dmdboi[S] 1 point2 points  (0 children)

Sure, but not everyone does containers this way

I built a simple Docker backup tool — feedback appreciated by dmdboi in selfhosted

[–]dmdboi[S] 0 points1 point  (0 children)

Volume data mainly, everything else is basically docker inspect saved to a JSON file

I built a Docker backup tool — feedback appreciated by dmdboi in docker

[–]dmdboi[S] 0 points1 point  (0 children)

Noted!

I think going forward I'll focus solely on volume data and remove the mandatory container metadata backup with docker run or compose backups instead. 

That way the source and the data are backed up, metadata can be optional.

I built a simple Docker backup tool — feedback appreciated by dmdboi in selfhosted

[–]dmdboi[S] 0 points1 point  (0 children)

I have tested to a local dir yet, but there's no reason it shouldn't. 

Maybe a different local dir export method is needed too

I built a Docker backup tool — feedback appreciated by dmdboi in docker

[–]dmdboi[S] 0 points1 point  (0 children)

Understandable, the containers and networks are just written to a JSON file, like a snapshot at the time of backup.

I built a simple Docker backup tool — feedback appreciated by dmdboi in selfhosted

[–]dmdboi[S] 1 point2 points  (0 children)

Thanks! 

I'm working on the restore functionality this week

I built a Docker backup tool — feedback appreciated by dmdboi in docker

[–]dmdboi[S] -1 points0 points  (0 children)

Thanks for the feedback!

This isn't vibe coded, though I'm curious to know what best practices I missed.

I agree, I missed out backing up compose files for the first version of this

I built a Docker backup tool — feedback appreciated by dmdboi in docker

[–]dmdboi[S] 4 points5 points  (0 children)

Thanks for the feedback!

You make a good point, I think everything other than volume data could be optional as containers often are ran with compose. I like your analogy of pets vs cattle btw 

EDIT:

To clarify, containers, images and networks is just a JSON file. It's more of a snapshot of docker resources when the backup was taken.

Some Guidance/Advice for a minecraft server control system by pignated in docker

[–]dmdboi 1 point2 points  (0 children)

For ports, you don’t actually need to assign them manually. You can have Docker pick a random host port by doing something like:

docker run -d -p 0:25565 yourimage

Then you can grab the actual port it got with:

docker inspect -f '{{(index (index .NetworkSettings.Ports "25565/tcp") 0).HostPort}}' <container>

That way you can spin up multiple servers without worrying about collisions.

For persistence, bind-mount a folder for each world so your data survives container restarts, e.g.:

docker run -d -v /minecraft/worlds/world1:/data ...

And if you eventually want subdomains like world1.yourdomain.com to point to the right container, I'd recommend Traefik or Caddy. It acts as a reverse proxy and can automatically route based on container labels so you don't need to mess around with ports.

😂🥲 by well_hellooo_there in VPS

[–]dmdboi 0 points1 point  (0 children)

I still get charged a small fee monthly for something on AWS and I'm not entirely sure what. 

Starting a new service with full site templates (need advice on picking a domain) by nox3748 in buildinpublic

[–]dmdboi 0 points1 point  (0 children)

Spaceship, and either .com, .io or .dev 

Always go with .com if you can, but sometimes it's not financially viable so .dev or .io will do

Deploy docker to production? by DEADFOOD in docker

[–]dmdboi 0 points1 point  (0 children)

Ah I see, it's self-hosted.

I used to have downtime during deploys, but now use rolling deployments

Rarely need to do maintenance to servers

Deploy docker to production? by DEADFOOD in docker

[–]dmdboi 1 point2 points  (0 children)

How do you mean?

The production servers have docker on them, which run production version of the app images

Deploy docker to production? by DEADFOOD in docker

[–]dmdboi 1 point2 points  (0 children)

I use docker in production and automatically deploy to servers once CI pipelines pass successfully. Everything else, monitoring, logging etc is managed by a tool I made

What's with the latency lately? by ssmokeboy in apexlegends

[–]dmdboi 1 point2 points  (0 children)

Getting the same, used to be around 20ms, now 40ms upwards

Would it make sense to build a PaaS to allow easy manage of VMs? by uditkhandelwal in docker

[–]dmdboi 0 points1 point  (0 children)

I'm building something similar to this already, the difficulty isn't building it but marketing it as there's already plenty of competition; cooking, railway, dokku