Add MAS
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
SYNAPSE_SERVER_NAME=
|
|
||||||
SYNAPSE_POSTGRES_DATA_DIR=
|
SYNAPSE_POSTGRES_DATA_DIR=
|
||||||
SYNAPSE_CONFIG_DIR=
|
SYNAPSE_CONFIG_DIR=
|
||||||
|
|
||||||
@@ -6,3 +5,10 @@ POSTGRES_DB=
|
|||||||
POSTGRES_USER=
|
POSTGRES_USER=
|
||||||
POSTGRES_PASSWORD=
|
POSTGRES_PASSWORD=
|
||||||
|
|
||||||
|
|
||||||
|
MAS_CONFIG_DIR=
|
||||||
|
|
||||||
|
MAS_POSTGRES_DATA_DIR=
|
||||||
|
MAS_POSTGRES_DB=
|
||||||
|
MAS_POSTGRES_USER=
|
||||||
|
MAS_POSTGRES_PASSWORD=
|
||||||
|
|||||||
@@ -1,4 +1,21 @@
|
|||||||
services:
|
services:
|
||||||
|
mas:
|
||||||
|
image: ghcr.io/element-hq/matrix-authentication-service:0.14.1
|
||||||
|
restart: unless-stopped
|
||||||
|
working_dir: /config
|
||||||
|
volumes:
|
||||||
|
- ${MAS_CONFIG_DIR}:/config
|
||||||
|
ports:
|
||||||
|
- "8090:8090"
|
||||||
|
mas_db:
|
||||||
|
image: docker.io/library/postgres:17
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ${MAS_POSTGRES_DATA_DIR}:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
POSTGRES_DB: ${MAS_POSTGRES_DB}
|
||||||
|
POSTGRES_USER: ${MAS_POSTGRES_USER}
|
||||||
|
POSTGRES_PASSWORD: ${MAS_POSTGRES_PASSWORD}
|
||||||
synapse_db:
|
synapse_db:
|
||||||
image: docker.io/library/postgres:17
|
image: docker.io/library/postgres:17
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -14,16 +31,9 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${SYNAPSE_CONFIG_DIR}:/data
|
- ${SYNAPSE_CONFIG_DIR}:/data
|
||||||
environment:
|
|
||||||
SYNAPSE_SERVER_NAME: ${SYNAPSE_SERVER_NAME}
|
|
||||||
SYNAPSE_REPORT_STATS: "no"
|
|
||||||
SYNAPSE_ENABLE_REGISTRATION: "true"
|
|
||||||
SYNAPSE_POSTGRES_HOST: synapse_db
|
|
||||||
SYNAPSE_POSTGRES_USER: ${POSTGRES_USER}
|
|
||||||
SYNAPSE_POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
||||||
SYNAPSE_POSTGRES_DB: ${POSTGRES_DB}
|
|
||||||
ports:
|
ports:
|
||||||
- "8008:8008"
|
- "8008:8008"
|
||||||
depends_on:
|
depends_on:
|
||||||
- synapse_db
|
- synapse_db
|
||||||
|
- matrix-authentication-service
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user