hashicorp / nomad-pack-community-registry

A repo for Packs written and maintained by Nomad community members
Mozilla Public License 2.0
214 stars 76 forks source link

Pack: Mastodon #142

Open mrchrisadams opened 1 year ago

mrchrisadams commented 1 year ago

creating a mastodon pack, based on this docker compose file seems to be 5 moving parts

Postgres Redis One or more rails web application processes One or more worker processes One or more node streaming processes

Here’s the docker compose file: https://github.com/mastodon/mastodon/blob/main/docker-compose.yml

I know at least one other potential user, so I’m opening this issue to see if anyone more experienced with nomad pack would be up for collaborating on creating this.

emze9 commented 1 year ago

Hello @mrchrisadams, I'm currently working on this but I'm facing some issues...

mrchrisadams commented 1 year ago

Hey @emze9 what are you bumping up against?

The main thing I couldn't figure out was having a sensible way to do persistent storage for PostgresSQL.

I've used host volumes previously for this but that relies on the underlying nodes declaring that they have this storage that would persist between allocations.

lhaig commented 1 year ago

Hello @mrchrisadams, I'm currently working on this but I'm facing some issues...

What are the challenges? CSI volumes are an option as well.

emze9 commented 1 year ago

Hey @emze9 what are you bumping up against?

The main thing I couldn't figure out was having a sensible way to do persistent storage for PostgresSQL.

I've used host volumes previously for this but that relies on the underlying nodes declaring that they have this storage that would persist between allocations.

Hi, I was struggled with commands and args at startup but that's ok now.

Personally, I use mapped volumes on the host and it works well. Indeed, that's rely on the underlying nodes but I accept that.

lhaig commented 1 year ago

Did you create a PR for the pack?