aboutsummaryrefslogtreecommitdiff
path: root/build/docker/docker-compose.polylith.yml
blob: d424d43b17520ea249a5340bebf7b53098f1b1e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
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

  user_api:
    hostname: user_api
    image: matrixdotorg/dendrite:userapi
    command: [
        "--config=dendrite.yaml"
    ]
    volumes:
        - ./config:/etc/dendrite
    networks:
        - internal

  appservice_api:
    hostname: appservice_api
    image: matrixdotorg/dendrite:appservice
    command: [
      "--config=dendrite.yaml"
    ]
    volumes:
      - ./config:/etc/dendrite
    networks:
      - internal
    depends_on:
      - room_server
      - user_api

networks:
  internal:
    attachable: true