Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (59 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (59 loc) · 1.58 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
# Local-only Compose for the 86669666/CDT-Monitor fork.
# Tags cdt-monitor:local after a local build. Do not use a GHCR/Hub
# image name here: `docker compose push` must have no registry target.
name: cdt-monitor
services:
cdt-monitor:
build:
context: .
dockerfile: Dockerfile
args:
# Override with VERSION=local COMMIT="$(git rev-parse --short HEAD)"
# BUILT_AT="$(date -u +%Y-%m-%dT%H:%MZ)" docker compose build.
VERSION: "${VERSION:-local}"
COMMIT: "${COMMIT:-unknown}"
BUILT_AT: "${BUILT_AT:-local}"
IMAGE_SOURCE: https://github.com/86669666/CDT-Monitor
image: cdt-monitor:local
pull_policy: build
container_name: cdt-monitor
restart: on-failure:3
init: true
stop_grace_period: 15s
stop_signal: SIGTERM
security_opt:
- no-new-privileges:true
privileged: false
cap_drop:
- ALL
user: "65532:65532"
pids_limit: 256
mem_limit: 512m
memswap_limit: 512m
cpus: 1.0
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# Loopback only until CDT_TRUSTED_PROXIES exists. Do not publish 0.0.0.0.
ports:
- "127.0.0.1:43210:8080"
environment:
CDT_DATA_DIR: /data
CDT_LISTEN: :8080
CDT_WORKERS: 2
TZ: Asia/Taipei
read_only: true
tmpfs:
- /tmp:size=16m,mode=1777,noexec,nosuid,nodev
volumes:
- cdt-data:/data
healthcheck:
test: ["CMD", "/cdt-monitor", "healthcheck"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
cdt-data: