Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
services:
element-call:
build:
context: .
dockerfile_inline: |
FROM node AS builder
WORKDIR /app

RUN git clone https://github.com/element-hq/element-call.git .
RUN corepack enable
RUN yarn install
RUN yarn build

FROM nginx:alpine
COPY --from=builder /app/dist /app
COPY --from=builder /app/config/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
ports:
- "8080:8080"
command: >
sh -c "echo \"$$CONFIG_JSON\" > /app/config.json && exec nginx -g 'daemon off;'"
environment:
CONFIG_JSON: |
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://mydomain.com",
"server_name": "mydomain.com"
}
},
"features": {
"feature_use_device_session_member_events": true
},
"ssla": "https://static.element.io/legal/element-software-and-services-license-agreement-uk-1.pdf",
"matrix_rtc_session": {
"wait_for_key_rotation_ms": 3000,
"membership_event_expiry_ms": 180000000,
"delayed_leave_event_delay_ms": 18000,
"delayed_leave_event_restart_ms": 4000,
"network_error_retry_ms": 100
}
}
restart: unless-stopped