mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 13:23:22 -06:00
Fix the docker-compose things
This commit is contained in:
parent
c09e55f002
commit
a2595df48a
|
|
@ -10,4 +10,4 @@ COPY --from=base /build/bin/${component} /usr/bin
|
||||||
VOLUME /etc/dendrite
|
VOLUME /etc/dendrite
|
||||||
WORKDIR /etc/dendrite
|
WORKDIR /etc/dendrite
|
||||||
|
|
||||||
ENTRYPOINT /usr/bin/$entrypoint
|
ENTRYPOINT /usr/bin/${entrypoint} $@
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
version: "3.4"
|
version: "3.4"
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
container_name: dendrite_postgres
|
|
||||||
hostname: postgres
|
hostname: postgres
|
||||||
image: postgres:9.5
|
image: postgres:9.5
|
||||||
restart: always
|
restart: always
|
||||||
|
|
@ -14,7 +13,6 @@ services:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
zookeeper:
|
zookeeper:
|
||||||
container_name: dendrite_zookeeper
|
|
||||||
hostname: zookeeper
|
hostname: zookeeper
|
||||||
image: zookeeper
|
image: zookeeper
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
version: "3.4"
|
version: "3.4"
|
||||||
services:
|
services:
|
||||||
postgres:
|
monolith:
|
||||||
container_name: dendrite_postgres
|
hostname: monolith
|
||||||
hostname: postgres
|
image: matrixdotorg/dendrite:monolith
|
||||||
image: postgres:9.5
|
command: [
|
||||||
restart: always
|
"--config=dendrite.yaml",
|
||||||
volumes:
|
"--tls-cert=server.crt",
|
||||||
- ./postgres/create_db.sh:/docker-entrypoint-initdb.d/20-create_db.sh
|
"--tls-key=server.key"
|
||||||
environment:
|
]
|
||||||
POSTGRES_PASSWORD: itsasecret
|
volumes:
|
||||||
POSTGRES_USER: dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,15 @@
|
||||||
version: "3.4"
|
version: "3.4"
|
||||||
services:
|
services:
|
||||||
client_api_proxy:
|
client_api_proxy:
|
||||||
container_name: dendrite_client_api_proxy
|
|
||||||
hostname: client_api_proxy
|
hostname: client_api_proxy
|
||||||
image: matrixdotorg/dendrite:clientproxy
|
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:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -17,9 +23,11 @@ services:
|
||||||
- "8008:8008"
|
- "8008:8008"
|
||||||
|
|
||||||
client_api:
|
client_api:
|
||||||
container_name: dendrite_client_api
|
|
||||||
hostname: client_api
|
hostname: client_api
|
||||||
image: matrixdotorg/dendrite:clientapi
|
image: matrixdotorg/dendrite:clientapi
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
- room_server
|
- room_server
|
||||||
|
|
@ -27,54 +35,68 @@ services:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
media_api:
|
media_api:
|
||||||
container_name: dendrite_media_api
|
|
||||||
hostname: media_api
|
hostname: media_api
|
||||||
image: matrixdotorg/dendrite:mediaapi
|
image: matrixdotorg/dendrite:mediaapi
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
public_rooms_api:
|
public_rooms_api:
|
||||||
container_name: dendrite_public_rooms_api
|
|
||||||
hostname: public_rooms_api
|
hostname: public_rooms_api
|
||||||
image: matrixdotorg/dendrite:publicroomsapi
|
image: matrixdotorg/dendrite:publicroomsapi
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
sync_api:
|
sync_api:
|
||||||
container_name: dendrite_sync_api
|
|
||||||
hostname: sync_api
|
hostname: sync_api
|
||||||
image: matrixdotorg/dendrite:syncapi
|
image: matrixdotorg/dendrite:syncapi
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
room_server:
|
room_server:
|
||||||
container_name: dendrite_room_server
|
|
||||||
hostname: room_server
|
hostname: room_server
|
||||||
image: matrixdotorg/dendrite:roomserver
|
image: matrixdotorg/dendrite:roomserver
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
edu_server:
|
edu_server:
|
||||||
container_name: dendrite_edu_server
|
|
||||||
hostname: edu_server
|
hostname: edu_server
|
||||||
image: matrixdotorg/dendrite:eduserver
|
image: matrixdotorg/dendrite:eduserver
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
federation_api_proxy:
|
federation_api_proxy:
|
||||||
container_name: dendrite_federation_api_proxy
|
|
||||||
hostname: federation_api_proxy
|
hostname: federation_api_proxy
|
||||||
image: matrixdotorg/dendrite:federationproxy
|
image: matrixdotorg/dendrite:federationproxy
|
||||||
|
command: [
|
||||||
|
"--bind-address=:8448",
|
||||||
|
"--federation-api-url=http://federation_api_server:7772",
|
||||||
|
"--media-api-server-url=http://media_api:7774"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
@ -87,27 +109,33 @@ services:
|
||||||
- "8448:8448"
|
- "8448:8448"
|
||||||
|
|
||||||
federation_api:
|
federation_api:
|
||||||
container_name: dendrite_federation_api
|
|
||||||
hostname: federation_api
|
hostname: federation_api
|
||||||
image: matrixdotorg/dendrite:federationapi
|
image: matrixdotorg/dendrite:federationapi
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
federation_sender:
|
federation_sender:
|
||||||
container_name: dendrite_federation_sender
|
|
||||||
hostname: federation_sender
|
hostname: federation_sender
|
||||||
image: matrixdotorg/dendrite:federationsender
|
image: matrixdotorg/dendrite:federationsender
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
|
|
||||||
key_server:
|
key_server:
|
||||||
container_name: dendrite_key_server
|
hostname: key_serverde
|
||||||
hostname: key_server
|
|
||||||
image: matrixdotorg/dendrite:keyserver
|
image: matrixdotorg/dendrite:keyserver
|
||||||
|
command: [
|
||||||
|
"--config=dendrite.yaml"
|
||||||
|
]
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/etc/dendrite
|
- ./config:/etc/dendrite
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue