mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-28 16:08:27 +00:00
7d6461dd3c
* Server key API (works for monolith but not for polylith yet) * Re-enable caching on server key API component * Groundwork for HTTP APIs for server key API * Hopefully implement HTTP for server key API * Simplify public key request marshalling from map keys * Update gomatrixserverlib * go mod tidy * Common -> internal * remove keyring.go * Update Docker Hub for server key API * YAML is funny about indentation * Wire in new server key API into hybrid monolith mode * Create maps * Route server key API endpoints on internal API mux * Fix server key API URLs * Add fetcher behaviour into server key API implementation * Return error if we failed to fetch some keys * Return results anyway * Move things about a bit * Remove unused code * Fix comments, don't use federation sender URL in polylith mode * Add server_key_api to sample config * Review comments * HTTP API to cache keys that have been requested * Overwrite server_key_api listen in monolith hybrid mode
157 lines
3.2 KiB
YAML
157 lines
3.2 KiB
YAML
version: "3.4"
|
|
services:
|
|
client_api_proxy:
|
|
hostname: client_api_proxy
|
|
image: matrixdotorg/dendrite:clientproxy
|
|
command: [
|
|
"--bind-address=:8008",
|
|
"--client-api-server-url=http://client_api:7771",
|
|
"--sync-api-server-url=http://sync_api:7773",
|
|
"--media-api-server-url=http://media_api:7774",
|
|
"--public-rooms-api-server-url=http://public_rooms_api:7775"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
depends_on:
|
|
- sync_api
|
|
- client_api
|
|
- media_api
|
|
- public_rooms_api
|
|
ports:
|
|
- "8008:8008"
|
|
|
|
client_api:
|
|
hostname: client_api
|
|
image: matrixdotorg/dendrite:clientapi
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
- room_server
|
|
networks:
|
|
- internal
|
|
|
|
media_api:
|
|
hostname: media_api
|
|
image: matrixdotorg/dendrite:mediaapi
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
public_rooms_api:
|
|
hostname: public_rooms_api
|
|
image: matrixdotorg/dendrite:publicroomsapi
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
sync_api:
|
|
hostname: sync_api
|
|
image: matrixdotorg/dendrite:syncapi
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
room_server:
|
|
hostname: room_server
|
|
image: matrixdotorg/dendrite:roomserver
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
edu_server:
|
|
hostname: edu_server
|
|
image: matrixdotorg/dendrite:eduserver
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
federation_api_proxy:
|
|
hostname: federation_api_proxy
|
|
image: matrixdotorg/dendrite:federationproxy
|
|
command: [
|
|
"--bind-address=:8448",
|
|
"--federation-api-url=http://federation_api:7772",
|
|
"--media-api-server-url=http://media_api:7774"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
depends_on:
|
|
- federation_api
|
|
- federation_sender
|
|
- media_api
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- "8448:8448"
|
|
|
|
federation_api:
|
|
hostname: federation_api
|
|
image: matrixdotorg/dendrite:federationapi
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
federation_sender:
|
|
hostname: federation_sender
|
|
image: matrixdotorg/dendrite:federationsender
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
key_server:
|
|
hostname: key_server
|
|
image: matrixdotorg/dendrite:keyserver
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
server_key_api:
|
|
hostname: server_key_api
|
|
image: matrixdotorg/dendrite:serverkeyapi
|
|
command: [
|
|
"--config=dendrite.yaml"
|
|
]
|
|
volumes:
|
|
- ./config:/etc/dendrite
|
|
networks:
|
|
- internal
|
|
|
|
networks:
|
|
internal:
|
|
attachable: true
|