This commit is contained in:
2025-08-04 18:24:30 +10:00
commit 9c9e8f09da
22 changed files with 533 additions and 0 deletions

79
global/docker-compose.yml Normal file
View File

@@ -0,0 +1,79 @@
# dockercompose.yml (версия 3.8 поддерживает named volumes и сетевые настройки)
version: "3.8"
services:
synapse:
image: matrixdotorg/synapse:latest
container_name: matrix_synapse
environment:
- SYNAPSE_SERVER_NAME=matrix.emsdata.ru
- SYNAPSE_REPORT_STATS=no
- TZ=Asia/Vladivostok
ports:
- "8008:8008" # HTTP (без TLS), используемый 뒤 federation/client API
- "8448:8448" # блок federation HTTPS (если понадобилось позже)
volumes:
- synapse_data:/data
restart: unless-stopped
drawio:
image: jgraph/drawio:latest
container_name: drawio
ports:
- "8080:8080" # Draw.io в браузере: http://host:8080
restart: unless-stopped
static-nginx:
image: nginx:alpine
container_name: nginx_static
ports:
- "8081:8081" # простой статический nginx без монтирования откроется дефолтный index
volumes:
- ./nginx-site:/usr/share/nginx/html:ro
restart: unless-stopped
npm-app:
image: jc21/nginx-proxy-manager:latest
container_name: nginx_proxy_manager
ports:
- "81:81" # админка (login: admin@example.com / password: changeme)
- "80:80" # http proxy
- "443:443" # https proxy
volumes:
- npm_data:/data
- npm_letsencrypt:/etc/letsencrypt
restart: unless-stopped
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
volumes:
- ./gitea/data:/data
ports:
- "3000:3000"
- "2222:22"
restart: unless-stopped
wireguard:
image: lscr.io/linuxserver/wireguard:latest
container_name: wireguard_vpn
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
ports:
- "51820:51820/udp"
volumes:
- wireguard_data:/config
restart: unless-stopped
volumes:
synapse_data:
npm_data:
npm_letsencrypt:
wireguard_data:
nginx-site:

Binary file not shown.

Binary file not shown.

View File

View File

@@ -0,0 +1,35 @@
# Configuration file for Synapse.
#
# This is a YAML file: see [1] for a quick introduction. Note in particular
# that *indentation is important*: all the elements of a list or dictionary
# should have the same indentation.
#
# [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html
#
# For more information on how to configure Synapse, including a complete accounting of
# each option, go to docs/usage/configuration/config_documentation.md or
# https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html
server_name: "matrix.emsdata.ru"
pid_file: /data/homeserver.pid
listeners:
- port: 8008
tls: false
type: http
x_forwarded: true
resources:
- names: [client, federation]
compress: false
database:
name: sqlite3
args:
database: /data/homeserver.db
log_config: "/data/matrix.local.log.config"
media_store_path: /mnt/media_store
registration_shared_secret: "CKXLZlHyBol:m0.;ZTt2xo8kP8Sx=n2vlz3yAkD94.=I~WUyyO"
report_stats: true
macaroon_secret_key: "8Re-vQZ4jDF7J3CzWk7:REH7F-B&T7BaJCAQ+tOLvPYXNCm+LE"
form_secret: "VIl0~Qhicl_O.HTDG07-ffEB+Vh&wS=3+F81@n8krCvl-FCGhq"
signing_key_path: "/data/matrix.local.signing.key"
trusted_key_servers:
- server_name: "matrix.org"

View File

@@ -0,0 +1,39 @@
version: 1
formatters:
precise:
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: precise
loggers:
# This is just here so we can leave `loggers` in the config regardless of whether
# we configure other loggers below (avoid empty yaml dict error).
_placeholder:
level: "INFO"
synapse.storage.SQL:
# beware: increasing this to DEBUG will make synapse log sensitive
# information such as access tokens.
level: INFO
root:
level: INFO
handlers: [console]
disable_existing_loggers: false

View File

@@ -0,0 +1,2 @@
ed25519 a_OpCO qscj9MgiLTtRQIy2bmXYgTPGSMBfWisbrz1mqfFJ4uI