35 lines
791 B
YAML
35 lines
791 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
synapse:
|
||
|
image: matrixdotorg/synapse:latest
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
|
||
|
ports:
|
||
|
- "8008:8008/tcp"
|
||
|
volumes:
|
||
|
- ./synapse:/data
|
||
|
depends_on:
|
||
|
- postgres
|
||
|
|
||
|
element:
|
||
|
image: vectorim/element-web:latest
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
- ./element-config.json:/app/config.json
|
||
|
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
|