Skip to content

Move to Docker/ansible hybrid hosting solution #41

Open
@carlnewton

Description

@carlnewton
No description provided.

Activity

converted this from a draft issue on Jan 26, 2025
added this to the Phase 1: Core milestone on Jan 26, 2025
carlnewton

carlnewton commented on Jan 26, 2025

@carlnewton
OwnerAuthor

Nutomic, a Lemmy developer has advised a way that Lemmy solves a problem I'm having with supporting both Docker container hosting and linux server hosting. Lemmy supports provisioning of a linux server with docker-compose, and then running docker containers on that server. This approach should unify efforts in config by moving everything into the docker config.

The unknowns in this area are quite daunting for me, but I know that it'll be the right solution going forward so here's a bunch of the things I need to understand before I can adopt it:

Deployment - Docker hosting solutions have to hold the container process open, once it is stopped, the container is destroyed. This would presumably not be the case in our scenario here, and so we could perhaps still use PHP deployer for deployments. What that looks like in practice, I'm not sure.

Database - Perhaps, just as with local development, a second container for mysql should be created. What would this mean in terms of backups etc?

Image storage - How does Lemmy deal with growing storage demands? Does it also support something like AWS S3? Does it suffer from fixed volume sizes?

Swap - On what layer will the swap need to exist? Perhaps both?

Once I have explored how Lemmy (and presumably Mastodon) deals with the above, I can then make the decision as to how best to deal with them for Habitat.

moved this from Todo to In Progress in Habitaton Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    • Status

      In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Move to Docker/ansible hybrid hosting solution · Issue #41 · carlnewton/habitat