this post was submitted on 11 Oct 2025
8 points (90.0% liked)
Self Hosted - Self-hosting your services.
17149 readers
1 users here now
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules
- No harassment
- crossposts from c/Open Source & c/docker & related may be allowed, depending on context
- Video Promoting is allowed if is within the topic.
- No spamming.
- Stay friendly.
- Follow the lemmy.ml instance rules.
- Tag your post. (Read under)
Important
- Lemmy doesn't have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate. This is strongly encouraged!
Cross-posting
- !everything_git@lemmy.ml is allowed!
- !docker@lemmy.ml is allowed!
- !portainer@lemmy.ml is allowed!
- !fediverse@lemmy.ml is allowed if topic has to do with selfhosting.
- !selfhosted@lemmy.ml is allowed!
If you see a rule-breaker please DM the mods!
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The first rule of containers is that you do not store any data in containers.
The second rule of containers is that you run them from a versioned config with proper volumes and tagging. Always.
If you obey these rules, then it's as simple as moving the volumes to another host and starting your containers. They're fully portable that way.
Do you mean they should be bind mounts? From here, a bind mount should look like this:
version: '3.8'
services: my_container: image: my_image:latest volumes: - /path/on/host:/path/in/container
So referring to my Firefly compose above, then I shoudl simply be able to copy over the
/var/www/html/storage/uploadfor the main app data and the database stored in here/var/lib/mysqlcan just be copied over? but then why does my local folder not have anystrorage/uploadfolders?user@vm101:/var/www/html$ ls index.html