matrix-docker-compose/ansible/roles/synapse/files/basedir/docker-compose.yaml

75 lines
1.8 KiB
YAML
Raw Normal View History

version: '3'
services:
synapse-main:
image: matrixdotorg/synapse:${SYNAPSE_VERSION}
volumes:
- /mnt/synapse_data:/data
2023-09-27 10:19:46 +00:00
- ./config:/config
command:
- run
- --config-path=/config/homeserver.yaml
restart: always
synapse-worker-generic:
image: matrixdotorg/synapse:${SYNAPSE_VERSION}
command:
- run
- "--config-path=/config/homeserver.yaml"
- "--config-path=/config/synapse-worker-generic.yaml"
volumes:
- /mnt/synapse_data:/data
- ./config:/config
environment:
SYNAPSE_WORKER: synapse.app.generic_worker
depends_on:
- synapse-main
restart: unless-stopped
synapse-worker-sync:
image: matrixdotorg/synapse:${SYNAPSE_VERSION}
command:
- run
- "--config-path=/config/homeserver.yaml"
- "--config-path=/config/synapse-worker-sync.yaml"
volumes:
- /mnt/synapse_data:/data
- ./config:/config
environment:
SYNAPSE_WORKER: synapse.app.generic_worker
depends_on:
- synapse-main
restart: unless-stopped
synapse-worker-federation:
image: matrixdotorg/synapse:${SYNAPSE_VERSION}
command:
- run
- "--config-path=/config/homeserver.yaml"
- "--config-path=/config/synapse-worker-federation.yaml"
volumes:
- /mnt/synapse_data:/data
- ./config:/config
environment:
SYNAPSE_WORKER: synapse.app.generic_worker
depends_on:
- synapse-main
restart: unless-stopped
nginx:
image: nginx:${NGINX_VERSION}
ports:
- "80:80/tcp"
- "443:443/tcp"
volumes:
- ./nginx:/etc/nginx/conf.d
- /ssl:/ssl
2023-12-04 09:16:33 +00:00
- /mnt/logs/nginx:/var/log/nginx/
restart: unless-stopped
redis:
image: "redis:latest"
ports:
- "6379:6379/tcp"
restart: "unless-stopped"