add intial working docker-compose.yaml

This commit is contained in:
James 2022-01-28 21:31:32 +00:00
parent 1991bf089c
commit 30b2101099
3 changed files with 26 additions and 0 deletions

8
.env.example Normal file
View File

@ -0,0 +1,8 @@
IMAGE_TAG=latest
SERVER_NAME=localhost
HTTP_PORT=8008
CONFIG_DIR=/data
CONFIG_FILE_NAME=homeserver.yaml
UID=991
GID=991
TZ=UTC

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

17
docker-compose.yaml Normal file
View File

@ -0,0 +1,17 @@
volumes:
synapse-data:
services:
synapse:
image: matrixdotorg/synapse:${IMAGE_TAG}
restart: unless-stopped
volumes:
- synapse-data:${CONFIG_DIR}
environment:
SYNAPSE_CONFIG_DIR: ${CONFIG_DIR}
SYNAPSE_CONFIG_PATH: ${CONFIG_DIR}/${CONFIG_FILE_NAME}
UID: ${UID}
GID: ${GID}
TZ: ${TZ}
ports:
- ${HTTP_PORT}:8008