-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.development.yml
More file actions
63 lines (57 loc) · 2.17 KB
/
Copy pathdocker-compose.development.yml
File metadata and controls
63 lines (57 loc) · 2.17 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
# =============================================================================
# Status Monitor (Uptime Kuma) - Development Mode (Local Build)
# =============================================================================
# Usage: docker compose -f docker-compose.development.yml up -d --build
#
# Builds the BAUER GROUP edition image locally from src/status-monitor instead
# of pulling it from GHCR. Direct host port, self-contained — no reverse proxy.
#
# Access:
# - Dashboard http://localhost:${PORT_HTTP:-3001}
#
# First start: open the dashboard and complete the setup wizard to create the
# admin account (persisted in the status-monitor-data volume).
# =============================================================================
### Service Templates ###
x-status-monitor-common: &status-monitor-common
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "50m"
max-file: "3"
environment:
- TZ=${TIME_ZONE:-Etc/UTC}
# Pass-through (no value): unset -> Uptime Kuma binds dual-stack [::] (IPv6 +
# IPv4) with clean logs. Set UPTIME_KUMA_HOST in .env only to override
# (e.g. 0.0.0.0 to force IPv4-only). Never set it to an explicit "::".
- UPTIME_KUMA_HOST
- UPTIME_KUMA_WS_ORIGIN_CHECK=${UPTIME_KUMA_WS_ORIGIN_CHECK:-cors-like}
- UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=${UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN:-false}
healthcheck:
# Bundled checker hits the local dashboard port. start_period absorbs the
# first-boot DB init; interval/retries govern steady-state detection.
test: ["CMD", "extra/healthcheck"]
interval: 60s
timeout: 30s
retries: 5
start_period: 180s
services:
### Status Monitor ###
status-monitor:
<<: *status-monitor-common
build:
context: ./src/status-monitor
args:
UPTIME_KUMA_REPOSITORY: ${UPTIME_KUMA_REPOSITORY:-louislam/uptime-kuma}
UPTIME_KUMA_VERSION: ${UPTIME_KUMA_VERSION:-2}
container_name: ${STACK_NAME:-status-monitor}_SERVER
ports:
- "${PORT_HTTP:-3001}:3001"
volumes:
- status-monitor-data:/app/data
### Volumes ###
volumes:
status-monitor-data:
driver: local
name: ${STACK_NAME:-status-monitor}-data