commit 95c44ff878ad95fbd9b3f1d48f3c6da0066ef86c
parent eb44a30166622039e7a3d8a9c5cf2bc3af4c5239
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date: Mon, 9 Feb 2026 18:09:36 +0900
Replace Synapse service with Tuwunel and update config
Diffstat:
| M | docker-compose.yaml | | | 79 | ++++++++++++++++++++++++++++++------------------------------------------------- |
1 file changed, 30 insertions(+), 49 deletions(-)
diff --git a/docker-compose.yaml b/docker-compose.yaml
@@ -1,56 +1,37 @@
-# This compose file is compatible with Compose itself, it might need some
-# adjustments to run properly with stack.
-
services:
- synapse:
- build:
- context: ../..
- dockerfile: docker/Dockerfile
- image: docker.io/matrixdotorg/synapse:latest
- # Since synapse does not retry to connect to the database, restart upon
- # failure
+ tuwunel:
+ image: ghcr.io/tuwunel/tuwunel:latest
restart: unless-stopped
- # See the readme for a full documentation of the environment settings
- # NOTE: You must edit homeserver.yaml to use postgres, it defaults to sqlite
+ volumes:
+ - ./tuwunel-data:/var/lib/tuwunel
environment:
- - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
+ TUWUNEL_SERVER_NAME: your.domain.com
+ TUWUNEL_DATABASE_PATH: /var/lib/tuwunel
+ TUWUNEL_PORT: 6167
+ TUWUNEL_MAX_LOG_LEVEL: info
+ TUWUNEL_ALLOW_REGISTRATION: "true"
+ networks:
+ - matrix-net
+
+ nginx:
+ image: nginx:alpine
+ restart: unless-stopped
+ ports:
+ - "80:80"
+ - "443:443"
volumes:
- # You may either store all the files in a local folder
- - ./files:/data
- # .. or you may split this between different storage points
- # - ./files:/data
- # - /path/to/ssd:/data/uploads
- # - /path/to/large_hdd:/data/media
+ - ./nginx.conf:/etc/nginx/nginx.conf:ro
+ - ./certs:/etc/letsencrypt:ro
depends_on:
- - db
- # In order to expose Synapse, remove one of the following, you might for
- # instance expose the TLS port directly:
- ports:
- - 28448:28448/tcp
- - 28008:28008/tcp
-
- db:
- image: docker.io/postgres:15-alpine
- # Change that password, of course!
- environment:
- - POSTGRES_USER=synapse_user
- - POSTGRES_PASSWORD=password
- # ensure the database gets created correctly
- # https://element-hq.github.io/synapse/latest/postgres.html#set-up-database
- - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
+ - tuwunel
+ networks:
+ - matrix-net
+ watchtower:
+ image: nickfedor/watchtower:latest
+ restart: unless-stopped
volumes:
- # You may store the database tables in a local folder..
- - ./schemas:/var/lib/postgresql/data
- # .. or store them on some high performance storage for better results
- # - /path/to/ssd/storage:/var/lib/postgresql/data
+ - /var/run/docker.sock:/var/run/docker.sock
-# nginx:
-# image: nginx
-# restart: unless-stopped
-# depends_on:
-# - synapse
-# ports:
-# - 28009:28009
-# volumes:
-# - ./nginx.conf:/etc/nginx/conf.d/rp.conf:ro
-# - ./nginx.logdir:/var/log/nginx:rw
+networks:
+ matrix-net:
+ driver: bridge