Skip to content

Cottand/lemmy-on-nomad-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lemmy Deployment on Nomad

Lemmy has well-documented Docker and Ansible deployment docs, from which you can derive a Nomad config. I thought I would share a variation of the one I am currently using as a starting point for whoever wants to selfhost Lemmy on Nomad rather than Docker or Ansible.

Why

You may already have Nomad running and thus you would probably rather stay consistent and use the same orchestrator for all your services.

Some benefits of using Nomad (specifically for Lemmy) include:

  • Horizontal scaling
    • You can run DB, frontend, backend, and pictrs in different machines.
    • You can set count = X for the backend, frontend and Nginx in order to scale traffic horizontally, also potentially across several machines
  • Better health check support
  • Rolling deployment options
    • you can set up Nomad to use rolling deployments for when you update your config or your container versions

Available examples

So far, we have examples of Lemmy set up using:

There is a job example for pict-rs provided separately, under pictrs-object-storage/

About

Nomad job files for running Lemmy

Topics

Resources

License

Stars

Watchers

Forks

Languages