-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
executable file
·166 lines (159 loc) · 4.87 KB
/
docker-compose.yml
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
# File : docker-compose.yml
# License : AGPL-3.0-or-later
# Author : Pierre 'McFly' Marty <[email protected]>
# Date : 16.01.2025
# Last Modified Date: 07.02.2025
# Last Modified By : Pierre 'McFly' Marty <[email protected]>
services:
auth:
image: yadd/lemonldap-ng-full
volumes:
- ./.compose/lemon/lmConf-1.json:/var/lib/lemonldap-ng/conf/lmConf-1.json
- ./.compose/lemon/ssl.conf:/etc/nginx/sites-enabled/0000default.conf
- ./.compose/lemon/root.conf:/etc/nginx/sites-enabled/root.conf
- ./.compose/synapse/wellknownserver.conf:/var/www/matrix-server.json
- ./.compose/synapse/wellknownclient.conf:/var/www/matrix-client.json
- ./.compose/ssl:/etc/nginx/ssl
- ./.compose/lemon/lemon.db:/db/lemon.db
environment:
- SSODOMAIN=docker.localhost
- PORTAL=https://auth.docker.localhost
- LOGLEVEL=debug
- LOGGER=stderr
- USERLOGGER=stderr
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
networks:
frontend:
aliases:
- auth
synapse:
image: matrixdotorg/synapse
restart: unless-stopped
env_file:
- path: .compose/.env
required: true
volumes:
- ./.compose/synapse:/data
- ./.compose/ssl:/etc/ssl/certs
depends_on:
auth:
condition: service_started
networks:
frontend:
aliases:
- synapse
tom:
build:
context: .
volumes:
# - ./.compose/tom:/opt/twake/db/
- ./.compose/lemon:/opt/lemon/db/
- ./.compose/synapse:/opt/synapse/db/
depends_on:
synapse:
condition: service_started
# ports:
# - 3000:3000
# - 9229:9229
networks:
frontend:
aliases:
- tom.server
environment:
# - NODE_OPTIONS="--inspect=0.0.0.0:9229"
- BASE_URL=https://tom.docker.localhost
- DATABASE_ENGINE=sqlite
# - DATABASE_HOST=/opt/twake/db/tom.db
- DATABASE_HOST=file:tom?mode=memory&cache=shared
- MATRIX_SERVER=matrix.docker.localhost
- MATRIX_DATABASE_ENGINE=sqlite
- MATRIX_DATABASE_HOST=/opt/synapse/db/homeserver.db
- OIDC_ISSUER=https://auth.docker.localhost
- SERVER_NAME=docker.localhost
- USERDB_ENGINE=sqlite
- USERDB_HOST=/opt/lemon/db/lemon.db
- LOG_LEVEL=silly
- LOG_TRANSPORTS=Console
- TEMPLATE_DIR=/usr/src/app/packages/tom-server/templates
- TRUSTED_PROXIES=uniquelocal
- CRON_SERVICE=true
- UPDATE_FEDERATED_IDENTITY_HASHES_CRON=0-59/2 * * * *
- UPDATE_USERS_CRON=1-59/2 * * * *
- ADDITIONAL_FEATURES=true
- FEDERATED_IDENTITY_SERVICES=fed.docker.localhost
- NODE_TLS_REJECT_UNAUTHORIZED=0
fed:
build:
context: .
dockerfile: ./packages/federated-identity-service/Dockerfile
volumes:
# - ./.compose/fed:/opt/twake/db/
# - ./.compose/lemon:/opt/lemon/db/ ## Uncomment to enable local userDB
- ./.compose/synapse:/opt/synapse/db/
# ports:
# - 3001:3001
# - 9229:9229
networks:
frontend:
aliases:
- fed.server
environment:
# - NODE_OPTIONS="--inspect=0.0.0.0:9229"
- BASE_URL=https://fed.docker.localhost
- SERVER_NAME=docker.localhost
- DATABASE_ENGINE=sqlite
# - DATABASE_HOST=/opt/twake/db/fed.db
- DATABASE_HOST=file:fed?mode=memory&cache=shared
# - USERDB_ENGINE=sqlite ## Uncomment to enable local userDB
# - USERDB_HOST=/opt/lemon/db/lemon.db ## Uncomment to enable local userDB
- LOG_LEVEL=silly
- LOG_TRANSPORTS=Console
- TRUSTED_PROXIES=uniquelocal
- CRON_SERVICE=true
# - UPDATE_FEDERATED_IDENTITY_HASHES_CRON=0-59/2 * * * *
# - UPDATE_USERS_CRON=1-59/2 * * * *
- ADDITIONAL_FEATURES=true
- TRUSTED_SERVERS_ADDRESSES=172.18.0.1/16
- NODE_TLS_REJECT_UNAUTHORIZED=0
chat:
image: linagora/twake-web
volumes:
- ./.compose/chat/config.json:/usr/share/nginx/html/web/config.json
- ./.compose/chat/default.conf.template:/etc/nginx/templates/default.conf.template
- ./.compose/ssl:/etc/nginx/ssl
# ports:
# - 6868:6868
environment:
- TWAKECHAT_LISTEN_PORT=6868
networks:
- frontend
haproxy:
image: haproxy:2.6-bookworm
ports:
- 443:443
volumes:
- ./.compose/haproxy:/usr/local/etc/haproxy:ro
- ./.compose/ssl/both.pem:/etc/ssl/certs/both.pem
sysctls:
- net.ipv4.ip_unprivileged_port_start=0
depends_on:
- auth
- chat
- synapse
- tom
networks:
frontend:
aliases:
- auth.docker.localhost
- chat.docker.localhost
- matrix.docker.localhost
- tom.docker.localhost
- fed.docker.localhost
- docker.localhost
networks:
frontend:
name: frontend