2020-05-21 12:02:28 +00:00
|
|
|
version: "3.4"
|
|
|
|
services:
|
2022-01-05 17:44:49 +00:00
|
|
|
postgres:
|
|
|
|
hostname: postgres
|
|
|
|
image: postgres:14
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./postgres/create_db.sh:/docker-entrypoint-initdb.d/20-create_db.sh
|
|
|
|
# To persist your PostgreSQL databases outside of the Docker image,
|
|
|
|
# to prevent data loss, modify the following ./path_to path:
|
|
|
|
- ./path_to/postgresql:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: itsasecret
|
|
|
|
POSTGRES_USER: dendrite
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U dendrite"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
jetstream:
|
|
|
|
hostname: jetstream
|
|
|
|
image: nats:latest
|
|
|
|
command: |
|
|
|
|
--jetstream
|
|
|
|
--store_dir /var/lib/nats
|
|
|
|
--cluster_name Dendrite
|
|
|
|
volumes:
|
|
|
|
# To persist your NATS JetStream streams outside of the Docker image,
|
|
|
|
# prevent data loss, modify the following ./path_to path:
|
|
|
|
- ./path_to/nats:/var/lib/nats
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
2020-05-21 12:02:28 +00:00
|
|
|
client_api:
|
|
|
|
hostname: client_api
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: clientapi
|
2020-05-21 12:02:28 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2022-01-05 17:44:49 +00:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-05-21 12:02:28 +00:00
|
|
|
|
|
|
|
media_api:
|
|
|
|
hostname: media_api
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: mediaapi
|
2020-05-21 12:02:28 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-03-03 11:20:40 +00:00
|
|
|
- ./media:/var/dendrite/media
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-05-21 12:02:28 +00:00
|
|
|
|
|
|
|
sync_api:
|
|
|
|
hostname: sync_api
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: syncapi
|
2020-05-21 12:02:28 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2022-01-05 17:44:49 +00:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-05-21 12:02:28 +00:00
|
|
|
|
|
|
|
room_server:
|
|
|
|
hostname: room_server
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: roomserver
|
2020-05-21 12:02:28 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2022-01-05 17:44:49 +00:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-05-21 12:02:28 +00:00
|
|
|
|
|
|
|
edu_server:
|
|
|
|
hostname: edu_server
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: eduserver
|
2020-05-21 12:02:28 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2022-01-05 17:44:49 +00:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-05-21 12:02:28 +00:00
|
|
|
|
|
|
|
federation_api:
|
|
|
|
hostname: federation_api
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: federationapi
|
2020-05-21 12:02:28 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2022-01-05 17:44:49 +00:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-05-21 12:02:28 +00:00
|
|
|
|
|
|
|
key_server:
|
2020-05-27 09:19:24 +00:00
|
|
|
hostname: key_server
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: keyserver
|
2020-05-21 12:02:28 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2022-01-05 17:44:49 +00:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
2021-02-12 09:25:35 +00:00
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2021-11-24 10:45:23 +00:00
|
|
|
|
2020-06-19 08:37:19 +00:00
|
|
|
user_api:
|
|
|
|
hostname: user_api
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: userapi
|
2020-06-19 08:37:19 +00:00
|
|
|
volumes:
|
2021-02-12 09:25:35 +00:00
|
|
|
- ./config:/etc/dendrite
|
2022-01-05 17:44:49 +00:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-06-19 08:37:19 +00:00
|
|
|
networks:
|
2021-02-12 09:25:35 +00:00
|
|
|
- internal
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-06-19 08:37:19 +00:00
|
|
|
|
2020-06-20 20:28:30 +00:00
|
|
|
appservice_api:
|
|
|
|
hostname: appservice_api
|
2020-10-20 15:11:24 +00:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: appservice
|
2020-06-20 20:28:30 +00:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
depends_on:
|
2022-01-05 17:44:49 +00:00
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-06-20 20:28:30 +00:00
|
|
|
- room_server
|
|
|
|
- user_api
|
2022-01-05 17:44:49 +00:00
|
|
|
restart: unless-stopped
|
2020-06-20 20:28:30 +00:00
|
|
|
|
2020-05-21 12:02:28 +00:00
|
|
|
networks:
|
|
|
|
internal:
|
|
|
|
attachable: true
|