Skip to content

Instantly share code, notes, and snippets.

@top
Created October 26, 2024 01:55
Show Gist options
  • Save top/31958511641ac5694605d0eb06182df3 to your computer and use it in GitHub Desktop.
Save top/31958511641ac5694605d0eb06182df3 to your computer and use it in GitHub Desktop.
All files needed to self-host a fediverse relay server with docker
ACTOR_PEM: /var/lib/relay/actor.pem
REDIS_URL: redis://redis:6379
RELAY_BIND: 0.0.0.0:8089
RELAY_DOMAIN: relay.ie9.org
RELAY_SERVICENAME: Relay Service - relay.ie9.org
JOB_CONCURRENCY: 50
#RELAY_SUMMARY: |
RELAY_ICON: https://upload.wikimedia.org/wikipedia/commons/2/25/Google_Podcasts_icon.svg
RELAY_IMAGE: https://upload.wikimedia.org/wikipedia/commons/2/25/Google_Podcasts_icon.svg
x-common-config: &common-config
image: docker.io/yukimochi/activity-relay:v2.0.6
working_dir: /var/lib/relay
restart: always
volumes:
- ./actor.pem:/var/lib/relay/actor.pem
- ./config.yml:/var/lib/relay/config.yml
networks:
- home
services:
relay_worker:
<<: *common-config
#container_name: relay_worker
command: relay worker
deploy:
mode: replicated
replicas: 2
relay_server:
<<: *common-config
container_name: relay_server
command: relay server
networks:
home:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment