mirror of
https://git.anonymousland.org/deathrow/synapse-docker-deployment.git
synced 2025-05-12 09:32:14 -04:00
Setup dimension
This commit is contained in:
parent
eb1a105806
commit
fec2f932c4
3 changed files with 46 additions and 2 deletions
|
@ -4,3 +4,6 @@ POSTGRES_DB=db
|
||||||
SWAG_URL=example.tld
|
SWAG_URL=example.tld
|
||||||
SWAG_SUBDOMAINS=matrix, dimension, adminer, maubot
|
SWAG_SUBDOMAINS=matrix, dimension, adminer, maubot
|
||||||
SWAG_EMAIL=email@example.tld
|
SWAG_EMAIL=email@example.tld
|
||||||
|
DIMENSION_DB_USER=user
|
||||||
|
DIMENSION_DB_PASSWORD=password
|
||||||
|
DIMENSION_DB_DB=db
|
15
README.md
15
README.md
|
@ -282,6 +282,21 @@ modules:
|
||||||
|
|
||||||
The [synapse-captcha](https://codeberg.org/deathrow/synapse-captcha) is included with this deployment. Refer to this for configuration.
|
The [synapse-captcha](https://codeberg.org/deathrow/synapse-captcha) is included with this deployment. Refer to this for configuration.
|
||||||
|
|
||||||
|
### Dimension
|
||||||
|
|
||||||
|
To setup dimension, refer to the [official documentation](https://github.com/turt2live/matrix-dimension/blob/master/docs/installing.md)
|
||||||
|
|
||||||
|
For the database:
|
||||||
|
|
||||||
|
```
|
||||||
|
database:
|
||||||
|
uri: "postgres://admin:password@dimension:5432/dbname"
|
||||||
|
botData: "/data/bot.json"
|
||||||
|
```
|
||||||
|
|
||||||
|
These values are set in the `.env` file.
|
||||||
|
|
||||||
|
|
||||||
### Additional
|
### Additional
|
||||||
|
|
||||||
To bypass ratelimits for certain users:
|
To bypass ratelimits for certain users:
|
||||||
|
|
|
@ -149,9 +149,10 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./dimension:/data:Z
|
- ./dimension:/data:Z
|
||||||
depends_on:
|
depends_on:
|
||||||
- synapse
|
- dimension_db
|
||||||
networks:
|
networks:
|
||||||
- matrix
|
- matrix
|
||||||
|
- dimension
|
||||||
ports:
|
ports:
|
||||||
- 127.0.0.1:8184:8184
|
- 127.0.0.1:8184:8184
|
||||||
read_only: true
|
read_only: true
|
||||||
|
@ -160,6 +161,30 @@ services:
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL
|
||||||
|
|
||||||
|
dimension_db:
|
||||||
|
image: docker.io/postgres:14.5-alpine
|
||||||
|
container_name: dimension_db
|
||||||
|
user: "70:70"
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=${DIMENSION_DB_USER}
|
||||||
|
- POSTGRES_PASSWORD=${DIMENSION_DB_PASSWORD}
|
||||||
|
- POSTGRES_DB=${DIMENSION_DB_DB}
|
||||||
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||||
|
volumes:
|
||||||
|
- ./dimension/db:/var/lib/dimension_db/data:Z
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:5433:5432
|
||||||
|
networks:
|
||||||
|
- dimension
|
||||||
|
read_only: true
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
|
tmpfs:
|
||||||
|
- /var/run/postgresql:size=50M,mode=0770,uid=70,gid=70,noexec,nosuid,nodev
|
||||||
|
|
||||||
# WORKERS
|
# WORKERS
|
||||||
|
|
||||||
sync3:
|
sync3:
|
||||||
|
@ -436,4 +461,5 @@ networks:
|
||||||
matrix:
|
matrix:
|
||||||
registration:
|
registration:
|
||||||
adminer:
|
adminer:
|
||||||
|
dimension:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue