-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 847 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (31 loc) · 847 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
32
services:
cheat-sheet:
build: .
container_name: cheat-sheet
# Publish to localhost only. Change to "8899:3000" to expose on your LAN —
# and set AUTH_USER / AUTH_PASS below if you do.
ports:
- "127.0.0.1:8899:3000"
volumes:
- cheat-sheet-data:/app/data
restart: unless-stopped
environment:
- PORT=3000
- HOST=0.0.0.0
# - AUTH_USER=admin
# - AUTH_PASS=change-me
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:3000/api/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# Bound container memory and rotate logs so a runaway can't exhaust the host.
mem_limit: 256m
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
cheat-sheet-data: