2023-09-01 14:42:24 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
synapse:
|
|
|
|
image: matrixdotorg/synapse:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
2023-09-08 14:23:45 +00:00
|
|
|
- SERVERNAME=${homeServerFQDN}
|
|
|
|
- PUBLICBASEURL=${synapseFQDN}
|
|
|
|
- ELEMENTWEB=${elementWebFQDN}
|
2023-09-01 14:42:24 +00:00
|
|
|
ports:
|
|
|
|
- "8008:8008/tcp"
|
|
|
|
volumes:
|
|
|
|
- ./synapse:/data
|
2023-09-08 14:43:39 +00:00
|
|
|
entrypoint: sh -c "/data/homeserver.yaml.sh && chmod -R 777 /data && /start.py"
|
2023-09-01 14:42:24 +00:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
|
|
|
|
element:
|
|
|
|
image: vectorim/element-web:latest
|
|
|
|
restart: unless-stopped
|
2023-09-08 14:23:45 +00:00
|
|
|
environment:
|
|
|
|
- SERVERNAME=${homeServerFQDN}
|
|
|
|
- PUBLICBASEURL=${synapseFQDN}
|
|
|
|
- ELEMENTWEB=${elementWebFQDN}
|
2023-09-01 14:42:24 +00:00
|
|
|
volumes:
|
2023-09-08 14:23:45 +00:00
|
|
|
- ./element/config.json.sh:/app/config.json.sh
|
|
|
|
command: sh -c "/app/config.json.sh && nginx -g 'daemon off;'"
|
|
|
|
#entrypoint: /app/config.json.sh
|
2023-09-01 14:42:24 +00:00
|
|
|
ports:
|
|
|
|
- "80:80/tcp"
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:14
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
|
|
- "5432:5432/tcp"
|
|
|
|
volumes:
|
|
|
|
- ./postgresdata:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=synapse
|
|
|
|
- POSTGRES_USER=synapse
|
|
|
|
- POSTGRES_PASSWORD=NEEDTOSETPASSWORD
|
|
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|