Disclaimers:
First thing first, I’m new to the whole Fediverse, and Lemmy thing, so please don’t hesitate to point out any problems you’re foreseeing.
Secondly, I’m by no means saying this is the ideal implementation, something something see above. Please don’t hesitate to make recommendations for improvements.
Lastly, I’m not sure if it is completely working. I’m still noticing a few issues that I will document and monitor towards the end of the post. If you know of the cause or how to debug further, please do let me know!
Notes and Assumptions:
default
network there (project folder was gateway
so the complete network name is gateway_default
)… there’s probably better ways to do this.lemmyexternalproxy
network. I think I’ve locked my down, but you may wish to double check my work.docker-compose.yml
untouched, and I can just pull in new changes (theoretically).Without further delays, here’s my files:
docker-compose.override.yml
:
version: "3.3"
networks:
lemmyexternalproxy:
internal: true
lemmygateway:
name: gateway_default
external: true
services:
lemmy:
image: dessalines/lemmy:0.17-linux-arm64
labels:
- "traefik.enable=true"
- "traefik.http.routers.lemmy.entrypoints=websecure"
- "traefik.http.routers.lemmy.rule=Host(`lemmy.chiisana.net`) && HeadersRegexp(`Accept`, `^application/`) || Host(`lemmy.chiisana.net`) && Method(`POST`) || Host(`lemmy.chiisana.net`) && PathPrefix(`/{path:(api|pictrs|feeds|nodeinfo|.well-known)}`)"
- "traefik.http.routers.lemmy.tls=true"
- "traefik.http.services.lemmy-svc.loadbalancer.server.port=8536"
- "traefik.docker.network=gateway_default"
networks:
- lemmygateway
lemmy-ui:
image: dessalines/lemmy-ui:0.17-linux-arm64
environment:
- LEMMY_UI_HOST=0.0.0.0:1234
- LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
- LEMMY_UI_LEMMY_EXTERNAL_HOST=lemmy.chiisana.net
- LEMMY_UI_HTTPS=true
- LEMMY_UI_DEBUG=false
labels:
- "traefik.enable=true"
- "traefik.http.routers.lemmy-ui.entrypoints=websecure"
- "traefik.http.routers.lemmy-ui.rule=Host(`lemmy.chiisana.net`)"
- "traefik.http.routers.lemmy-ui.tls=true"
- "traefik.http.services.lemmy-ui-svc.loadbalancer.server.port=1234"
- "traefik.docker.network=gateway_default"
networks:
- lemmygateway
proxy:
image: alpine:latest
command: "true"
entrypoint: "true"
restart: "no"
pictrs:
image: asonix/pictrs:0.4.0-rc.3
lemmy.hjson
:
setup: {
admin_username: "chiisana"
admin_password: "password-redacted-duh"
site_name: "chiisana lemmy site"
}
database: {
host: "postgres"
user: "lemmy"
password: "password-redacted-duh"
database: "lemmy"
}
email: {
smtp_server: "smtp.mailgun.org:587"
smtp_login: "lemmy@chiisana.net"
smtp_password: "password-redacted-duh"
smtp_from_address: "lemmy@chiisana.net"
tls_type: "tls"
}
pictrs: {
url: "http://pictrs:8080/"
api_key: "API_KEY"
}
hostname: "lemmy.chiisana.net"
bind: "0.0.0.0"
port: 8536
tls_enabled: true
}
Known issue(s)?
/admin
section, I’m seeing a ton of users from endlesstalk.org
pop up as banned users. I have no idea what that is about, as endlesstalk.org
seems to also be used only by one user. I’ll be monitoring this and see what’s to come of it.If you encounter any other issue, please do post back so we can try to debug it together. Hope this helps someone!
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!