-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 808 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
31 lines (29 loc) · 808 Bytes
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
# Matrix-Sharon — single-team self-hosted deployment.
# Usage:
# 1. Copy .env.example → .env, fill in GitHub OAuth + session secret.
# 2. docker compose up -d
# 3. Open http://127.0.0.1:4321 (or your reverse-proxy URL).
#
# First user to log in becomes leader automatically.
services:
sharon:
build: .
image: matrix-sharon:v1
ports:
- "4321:4321"
env_file:
- .env
environment:
NODE_ENV: production
SHARON_DATA_DIR: /data
volumes:
- sharon-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:4321/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
sharon-data: