Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update horizontal_scaling.md with ENV parameters #312

Merged
merged 2 commits into from
May 24, 2024

Conversation

poVoq
Copy link
Contributor

@poVoq poVoq commented May 22, 2024

As requested here: LemmyNet/lemmy#4603 (comment)

@dessalines
Copy link
Member

Thx, I'll run prettier.

@dessalines dessalines requested a review from Nutomic May 22, 2024 16:42
@@ -63,30 +63,40 @@ Here's a quick example on how you could start 3 web servers, 3 federation server
```
# scheduled tasks
lemmy_server --disable-http-server --disable-activity-sending
```

Or run the Docker container with the `-e LEMMY_DISABLE_HTTP_SERVER=true` and `-e LEMMY_DISABLE_ACTIVITY_SENDING=true` ENV parameters.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont put the -e part, its not needed if you run natively or via docker-compose so it can be confusing.

Copy link
Contributor Author

@poVoq poVoq May 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally put it as it is the equivalent to the above non-docker direct start option (and using ENV parameters without containers is very rare) . If you want to explain the docker-compose method, then the equivalent would be to modify a Systemd service file for the non-docker version.

But anyone willing to customize their docker-compose will know the difference anyway.

@Nutomic Nutomic merged commit 23eb06a into LemmyNet:main May 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants