adding configfiles

master
adb 4 years ago
parent 8403529d44
commit a66d1a7096

@ -0,0 +1,5 @@
docker run -it --rm \
--mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_SERVER_NAME=your.domain \
-e SYNAPSE_REPORT_STATS=yes \
matrixdotorg/synapse:latest generate

@ -0,0 +1,23 @@
version: '3'
services:
synapse:
image: matrixdotorg/synapse:latest
restart: always
ports:
- "8008:8008"
volumes:
- ./synapse_data/:/data/
links:
- db
db:
image: postgres:alpine
expose:
- 5432
restart: always
volumes:
- ./postgres_data/:/var/lib/postgresql/data/
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: matrix
POSTGRES_PASSWORD: your-secret-pw

@ -0,0 +1,7 @@
CREATE DATABASE synapse
ENCODING 'UTF8'
LC_COLLATE='C'
LC_CTYPE='C'
template=template0
OWNER matrix;
GRANT ALL PRIVILEGES ON DATABASE synapse TO matrix;
Loading…
Cancel
Save