69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
synapse:
|
|
image: matrixdotorg/synapse:latest
|
|
environment:
|
|
- SYNAPSE_SERVER_NAME=domaine.com
|
|
- SYNAPSE_REPORT_STATS=no
|
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
|
- POSTGRES_DB=synapse
|
|
- POSTGRES_USER=synapse
|
|
- POSTGRES_PASSWORD=gabuzomeu
|
|
- POSTGRES_HOST=ipdepostgres
|
|
- POSTGRES_PORT=5432
|
|
- VIRTUAL_HOST=domaine.com
|
|
- VIRTUAL_PORT=8008
|
|
- LETSENCRYPT_HOST=domaine.com
|
|
- LETSENCRYPT_EMAIL=admin@domaine.com
|
|
volumes:
|
|
- type: bind
|
|
source: /cheminglusterfs/synapse/data
|
|
target: /data
|
|
networks:
|
|
- pgnet
|
|
ports:
|
|
- "8008:8008"
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
element:
|
|
image: vectorim/element-web:latest
|
|
environment:
|
|
- VIRTUAL_HOST=element.domaine.com
|
|
- VIRTUAL_PORT=80
|
|
- LETSENCRYPT_HOST=element.domaine.com
|
|
- LETSENCRYPT_EMAIL=user@domaine.com
|
|
volumes:
|
|
- type: bind
|
|
source: /cheminglusterfs/element/config/config.json
|
|
target: /app/config.json
|
|
networks:
|
|
- pgnet
|
|
ports:
|
|
- "80:80"
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
synapse-admin:
|
|
image: awesometechnologies/synapse-admin:latest
|
|
networks:
|
|
- pgnet
|
|
ports:
|
|
- "81:80"
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
networks:
|
|
pgnet:
|
|
external: true
|