-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
71 lines (62 loc) · 2.1 KB
/
Copy pathdocker-compose.example.yml
File metadata and controls
71 lines (62 loc) · 2.1 KB
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
services:
status-server:
image: applegater/status-server:latest
container_name: status-server
restart: unless-stopped
ports:
# Standalone install — binds publicly on 3000.
- "3000:3000"
# ── HA primary / behind Cloudflare Tunnel? ──────────────────────────────
# Comment the line above and uncomment this one to bind loopback-only.
# Pair with the matching Cloudflare Tunnel `service: http://localhost:3200`
# and keep this box's status-server off the public internet.
# - "127.0.0.1:3200:3000"
volumes:
- ./servers.json:/config/servers.json
environment:
- PORT=3000
- CHECK_INTERVAL=30000
- CONFIG_PATH=/config/servers.json
# Database — points at the mariadb service below
- DB_HOST=mariadb
- DB_PORT=3306
- DB_USER=statusadmin
- DB_PASSWORD=changeme
- DB_NAME=status_monitor
# Session signing secret — change to a long random string.
- SESSION_SECRET=changeme_use_a_long_random_string
# Base URL used for dashboard links in webhook alerts
- EXTERNAL_URL=https://status.yourdomain.com
# Container timezone
- TZ=America/Los_Angeles
# SMTP for email notifications (optional)
# - SMTP_HOST=smtp.gmail.com
# - SMTP_PORT=587
# - SMTP_USER=you@gmail.com
# - SMTP_PASS=your-app-password
# - SMTP_FROM=monitor@yourdomain.com
# - SMTP_SECURE=false
# Branding (optional)
# - APP_OWNER=Your Name
# - APP_CONTACT_EMAIL=you@example.com
# - APP_HOME_URL=/
# Required for ICMP ping checks
cap_add:
- NET_RAW
depends_on:
- mariadb
labels:
- "com.status-server.description=Self-hosted status monitor"
mariadb:
image: mariadb:11
container_name: mariadb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=status_monitor
- MYSQL_USER=statusadmin
- MYSQL_PASSWORD=changeme
volumes:
- mariadb_data:/var/lib/mysql
volumes:
mariadb_data: