2020-05-21 07:02:28 -05:00
|
|
|
version: "3.4"
|
|
|
|
services:
|
2021-12-17 08:03:42 -06: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
|
|
|
|
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 07:02:28 -05:00
|
|
|
client_api:
|
|
|
|
hostname: client_api
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: clientapi
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
media_api:
|
|
|
|
hostname: media_api
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: mediaapi
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-03-03 05:20:40 -06:00
|
|
|
- ./media:/var/dendrite/media
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
sync_api:
|
|
|
|
hostname: sync_api
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: syncapi
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
room_server:
|
|
|
|
hostname: room_server
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: roomserver
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
edu_server:
|
|
|
|
hostname: edu_server
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: eduserver
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
federation_api:
|
|
|
|
hostname: federation_api
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: federationapi
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
|
|
|
|
key_server:
|
2020-05-27 04:19:24 -05:00
|
|
|
hostname: key_server
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: keyserver
|
2020-05-21 07:02:28 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
2021-02-12 03:25:35 -06:00
|
|
|
- internal
|
2021-11-24 04:45:23 -06:00
|
|
|
|
2020-06-19 03:37:19 -05:00
|
|
|
user_api:
|
|
|
|
hostname: user_api
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: userapi
|
2020-06-19 03:37:19 -05:00
|
|
|
volumes:
|
2021-02-12 03:25:35 -06:00
|
|
|
- ./config:/etc/dendrite
|
2021-12-17 08:03:42 -06:00
|
|
|
depends_on:
|
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-06-19 03:37:19 -05:00
|
|
|
networks:
|
2021-02-12 03:25:35 -06:00
|
|
|
- internal
|
2020-06-19 03:37:19 -05:00
|
|
|
|
2020-06-20 15:28:30 -05:00
|
|
|
appservice_api:
|
|
|
|
hostname: appservice_api
|
2020-10-20 10:11:24 -05:00
|
|
|
image: matrixdotorg/dendrite-polylith:latest
|
|
|
|
command: appservice
|
2020-06-20 15:28:30 -05:00
|
|
|
volumes:
|
|
|
|
- ./config:/etc/dendrite
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
depends_on:
|
2021-12-17 08:03:42 -06:00
|
|
|
- jetstream
|
|
|
|
- postgres
|
2020-06-20 15:28:30 -05:00
|
|
|
- room_server
|
|
|
|
- user_api
|
|
|
|
|
2020-05-21 07:02:28 -05:00
|
|
|
networks:
|
|
|
|
internal:
|
|
|
|
attachable: true
|