this post was submitted on 17 Mar 2022
7 points (100.0% liked)

Lemmy Support

4720 readers
7 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I'm thinking of setting up another lemmy instance and was considering just hosting it on the same VPS as my current instance. I know lemmygrad is hosted on the same server as lemmy.ml. How difficult is this?

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 2 years ago* (last edited 2 years ago)

If you're using Docker, there should be no problem running two instances of Lemmy in parallel - just make sure they're pointing at different directors for their data files, and that the docker-compose.yml files live in different folders so they get separate project names.

Not 100% sure about Ansible - you could set lemmy_base_dir in hosts/inventoty, but you might need to handle setting up and pointing at separate Postgres databases yourself.

Once you have the 2 servers running (on different ports), you'd change the config file ([Lemmy's single site example here[(https://github.com/LemmyNet/lemmy-ansible/blob/main/templates/nginx.conf)) add another server {} block, to reverse proxy to a different port depending on the domain name.