update synapse compose file
This commit is contained in:
parent
bdb81c85ed
commit
7c2fd948dc
1 changed files with 47 additions and 45 deletions
|
@ -3,58 +3,65 @@
|
||||||
|
|
||||||
services:
|
services:
|
||||||
synapse:
|
synapse:
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: synapse
|
container_name: synapse
|
||||||
image: docker.io/matrixdotorg/synapse:latest
|
image: docker.io/matrixdotorg/synapse:latest
|
||||||
# Since synapse does not retry to connect to the database, restart upon
|
|
||||||
# failure
|
|
||||||
restart: unless-stopped
|
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
|
|
||||||
environment:
|
environment:
|
||||||
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||||||
- SYNAPSE_SERVER_NAME=nadeko.net
|
- SYNAPSE_SERVER_NAME=nadeko.net
|
||||||
- SYNAPSE_REPORT_STATS=no
|
- SYNAPSE_REPORT_STATS=no
|
||||||
volumes:
|
volumes:
|
||||||
# You may either store all the files in a local folder
|
|
||||||
- ./synapse_data:/data:rw
|
- ./synapse_data:/data:rw
|
||||||
- ./synapse_data/homeserver.yaml:/data/homeserver.yaml:ro
|
- ./synapse_data/homeserver.yaml:/data/homeserver.yaml:ro
|
||||||
- /var/run/postgresql/:/run/postgresql:rw
|
- /var/run/postgresql/:/run/postgresql:rw
|
||||||
# .. or you may split this between different storage points
|
|
||||||
# - ./files:/data
|
|
||||||
# - /path/to/ssd:/data/uploads
|
|
||||||
# - /path/to/large_hdd:/data/media
|
|
||||||
# In order to expose Synapse, remove one of the following, you might for
|
|
||||||
# instance expose the TLS port directly:
|
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:10022:8008/tcp
|
- 127.0.0.1:10022:8008/tcp
|
||||||
- 127.0.0.1:9183:9183/tcp
|
- 127.0.0.1:9183:9183/tcp
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
|
|
||||||
interval: 15s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 3
|
|
||||||
start_period: 5s
|
|
||||||
|
|
||||||
# sliding-sync:
|
# synapse-generic-worker:
|
||||||
# image: ghcr.io/matrix-org/sliding-sync:latest
|
# container_name: synapse-generic-worker
|
||||||
# container_name: matrix-sliding-sync
|
# image: docker.io/matrixdotorg/synapse:latest
|
||||||
# restart: unless-stopped
|
# restart: unless-stopped
|
||||||
# volumes:
|
# command: "run -m synapse.app.generic_worker --config-path=/data/homeserver.yaml --config-path=/data/generic_worker.yaml"
|
||||||
# - /var/run/postgresql/:/run/postgresql:rw
|
# depends_on: ["synapse"]
|
||||||
# env_file:
|
|
||||||
# - path: ./sliding-sync/.env
|
|
||||||
# required: true
|
|
||||||
# environment:
|
# environment:
|
||||||
# - SYNCV3_SERVER=http://synapse:8008
|
# - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||||||
# - SYNCV3_BINDADDR=:8008
|
# - SYNAPSE_SERVER_NAME=nadeko.net
|
||||||
# - SYNCV3_LOG_LEVEL=debug
|
# - SYNAPSE_REPORT_STATS=no
|
||||||
|
# volumes:
|
||||||
|
# - ./synapse_data:/data:rw
|
||||||
|
# - ./synapse_data/homeserver.yaml:/data/homeserver.yaml:ro
|
||||||
|
# - ./generic_worker.yaml:/data/generic_worker.yaml:ro
|
||||||
|
# - /var/run/postgresql/:/run/postgresql:rw
|
||||||
# ports:
|
# ports:
|
||||||
# - 127.0.0.1:10024:8008
|
# - 127.0.0.1:10022:8008/tcp
|
||||||
# depends_on:
|
# #- 127.0.0.1:9183:9183/tcp
|
||||||
# - synapse
|
|
||||||
|
# synapse-media-worker:
|
||||||
|
# container_name: synapse-media-worker
|
||||||
|
# image: docker.io/matrixdotorg/synapse:latest
|
||||||
|
# restart: unless-stopped
|
||||||
|
# command: "run -m synapse.app.media_repository --config-path=/data/homeserver.yaml --config-path=/data/media_worker.yaml"
|
||||||
|
# depends_on: ["synapse"]
|
||||||
|
# environment:
|
||||||
|
# - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||||||
|
# - SYNAPSE_SERVER_NAME=nadeko.net
|
||||||
|
# - SYNAPSE_REPORT_STATS=no
|
||||||
|
# volumes:
|
||||||
|
# - ./synapse_data:/data:rw
|
||||||
|
# - ./synapse_data/homeserver.yaml:/data/homeserver.yaml:ro
|
||||||
|
# - ./media_worker.yaml:/data/media_worker.yaml:ro
|
||||||
|
# - /var/run/postgresql/:/run/postgresql:rw
|
||||||
|
# - ./valkey_socket:/tmp
|
||||||
|
# ports:
|
||||||
|
# - 127.0.0.1:10023:8009/tcp
|
||||||
|
# #- 127.0.0.1:9183:9183/tcp
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: redis:7-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./redis_data:/data
|
||||||
|
|
||||||
# matrix-auth-service:
|
# matrix-auth-service:
|
||||||
# image: ghcr.io/element-hq/matrix-authentication-service:latest
|
# image: ghcr.io/element-hq/matrix-authentication-service:latest
|
||||||
|
@ -90,20 +97,15 @@ services:
|
||||||
|
|
||||||
element:
|
element:
|
||||||
image: vectorim/element-web:latest
|
image: vectorim/element-web:latest
|
||||||
container_name: matrix-element
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./element-web/config.json:/app/config.json:ro
|
- ./element-web/config.json:/app/config.json:ro
|
||||||
ports:
|
ports:
|
||||||
- 10023:80/tcp
|
- 127.0.0.1:10024:80/tcp
|
||||||
|
|
||||||
synapse-admin:
|
# synapse-admin:
|
||||||
image: awesometechnologies/synapse-admin
|
# image: awesometechnologies/synapse-admin
|
||||||
ports:
|
# ports:
|
||||||
- "10025:80"
|
# - 127.0.0.1:10025:80
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
|
|
||||||
# TODO: Use pgbouncer
|
|
||||||
networks:
|
|
||||||
default:
|
|
||||||
name: synapse
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue