From 30b210109961e44083ba0d83ce45795a64ff8c43 Mon Sep 17 00:00:00 2001 From: Thumbscrew Date: Fri, 28 Jan 2022 21:31:32 +0000 Subject: [PATCH] add intial working docker-compose.yaml --- .env.example | 8 ++++++++ .gitignore | 1 + docker-compose.yaml | 17 +++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 docker-compose.yaml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..37fd070 --- /dev/null +++ b/.env.example @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..12c28e9 --- /dev/null +++ b/docker-compose.yaml @@ -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