[matrix] update worker and redis for Task#12025
This commit is contained in:
parent
75fb5a71b5
commit
84c358a5df
11 changed files with 470 additions and 12 deletions
|
|
@ -1,5 +1,19 @@
|
|||
version: '3'
|
||||
services:
|
||||
#nginx:
|
||||
# container_name: nginx
|
||||
# image: ungleich/ungleich-certbot:1.1.4
|
||||
# restart: unless-stopped
|
||||
# environment:
|
||||
# - DOMAIN=${DOMAIN}
|
||||
# - EMAIL=${EMAIL}
|
||||
# - STAGING=${STAGING}
|
||||
# ports:
|
||||
# - "443:443/tcp"
|
||||
# volumes:
|
||||
# - ./conf:/etc/nginx/conf.d
|
||||
# - ./etcletsencrypt:/etc/letsencrypt
|
||||
# - ./dconf/nginx.conf:/etc/nginx/nginx.conf
|
||||
synapse:
|
||||
image: matrixdotorg/synapse:latest
|
||||
restart: unless-stopped
|
||||
|
|
@ -12,8 +26,12 @@ services:
|
|||
- DBHOST=${dbhost}
|
||||
- DBUSER=${dbuser}
|
||||
- DBPASSWORD=${dbpassword}
|
||||
ports:
|
||||
- "8008:8008/tcp"
|
||||
- REDISHOST=${redishost}
|
||||
- REDISPORT=${redisport}
|
||||
network_mode: "host"
|
||||
#ports:
|
||||
# - "127.0.0.1:8008:8008/tcp"
|
||||
#- "[::1]:8008:8008/tcp"
|
||||
volumes:
|
||||
- ./synapse:/data
|
||||
entrypoint: sh -c "/data/homeserver.yaml.sh && chmod -R 777 /data && /start.py"
|
||||
|
|
@ -27,7 +45,52 @@ services:
|
|||
- ELEMENTWEB=${elementWebFQDN}
|
||||
volumes:
|
||||
- ./element/config.json.sh:/app/config.json.sh
|
||||
- ./conf:/etc/nginx/conf.d
|
||||
- ./etcletsencrypt:/etc/letsencrypt
|
||||
- ./dconf/nginx.conf:/etc/nginx/nginx.conf
|
||||
command: sh -c "/app/config.json.sh && nginx -g 'daemon off;'"
|
||||
#entrypoint: /app/config.json.sh
|
||||
ports:
|
||||
- "80:80/tcp"
|
||||
network_mode: "host"
|
||||
#ports:
|
||||
# - "443:443/tcp"
|
||||
# - "80:80/tcp"
|
||||
#- "127.0.0.1:8080:80/tcp"
|
||||
#- "[::1]:8080:80/tcp"
|
||||
|
||||
synapse-generic-worker-1:
|
||||
image: matrixdotorg/synapse:latest
|
||||
container_name: synapse-generic-worker-1
|
||||
restart: unless-stopped
|
||||
entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/synapse-generic-worker-1.yaml"]
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -fSs http://localhost:8081/health || exit 1"]
|
||||
start_period: "5s"
|
||||
interval: "15s"
|
||||
timeout: "5s"
|
||||
network_mode: "host"
|
||||
volumes:
|
||||
- ./synapse:/data
|
||||
environment:
|
||||
SYNAPSE_WORKER: synapse.app.generic_worker
|
||||
depends_on:
|
||||
- synapse
|
||||
|
||||
synapse-federation-sender-1:
|
||||
image: matrixdotorg/synapse:latest
|
||||
container_name: synapse-federation-sender-1
|
||||
restart: unless-stopped
|
||||
entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/synapse-federation-sender-1.yaml"]
|
||||
healthcheck:
|
||||
disable: true
|
||||
network_mode: "host"
|
||||
volumes:
|
||||
- ./synapse:/data
|
||||
environment:
|
||||
SYNAPSE_WORKER: synapse.app.generic_worker
|
||||
depends_on:
|
||||
- synapse
|
||||
|
||||
# redis:
|
||||
# image: "redis:latest"
|
||||
# restart: "unless-stopped"
|
||||
# network_mode: "host"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue