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

81 lines
2 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
2023-12-04 09:45:15 +00:00
container_name: synapse-main
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
2023-12-04 09:45:15 +00:00
container_name: synapse-worker-generic
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
2023-12-04 09:45:15 +00:00
container_name: synapse-worker-sync
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
2023-12-04 09:45:15 +00:00
container_name: synapse-worker-federation
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
2023-12-04 09:45:15 +00:00
container_name: nginx
redis:
image: "redis:latest"
ports:
- "6379:6379/tcp"
restart: "unless-stopped"
2023-12-04 09:45:15 +00:00
container_name: redis