Skip to content

Instantly share code, notes, and snippets.

@sjahl
Created March 11, 2023 13:33
Show Gist options
  • Save sjahl/ad0aafae419fa413ede67b5cf4d3d970 to your computer and use it in GitHub Desktop.
Save sjahl/ad0aafae419fa413ede67b5cf4d3d970 to your computer and use it in GitHub Desktop.
docker compose file for a matrix sliding sync proxy
version: "3"
services:
sliding-proxy:
image: ghcr.io/matrix-org/sliding-sync:v0.99.1
restart: unless-stopped
ports:
- "127.0.0.1:8881:8881"
environment:
- "SYNCV3_SECRET=<long random string>"
- "SYNCV3_SERVER=https://your.home.server"
- "SYNCV3_DB=user=syncv3 dbname=syncv3 sslmode=disable host=sliding-postgres password=hunter2"
- "SYNCV3_BINDADDR=0.0.0.0:8881"
depends_on:
- sliding-postgres
sliding-postgres:
image: docker.io/postgres:15-alpine
restart: unless-stopped
environment:
- "POSTGRES_USER=syncv3"
- "POSTGRES_PASSWORD=hunter2"
- "POSTGRES_DB=syncv3"
volumes:
- sliding_db_data:/var/lib/postgresql/data
volumes:
sliding_db_data:
@rotekii
Copy link

rotekii commented May 13, 2024

Hello, let's say that I have followed steps to self host matrix from here on this machine B (connected using ssh from machine A)
This is docker-compose.yaml
image
This is homeserver.yaml
image
Now, I'm not sure how to configure your docker-compose file so that it works in my case.
Also, I want to know how to do the same but using the docker image from here
This is what I'm trying to run but it timeout everytime
docker run --rm -e "SYNCV3_SERVER=machineB_IP_Adress" -e "SYNCV3_SECRET=$(cat .secret)" -e "SYNCV3_BINDADDR=:8008" -e "SYNCV3_DB=user=USER dbname=syncv3 sslmode=disable host=machineA_IP_Adress password='PASSWORD'" -p 8009:8008 ghcr.io/matrix-org/sliding-sync:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment