-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
24 lines (24 loc) · 941 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
24 lines (24 loc) · 941 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
services:
tg-search:
build: .
ports:
- "8080:8080"
volumes:
- ./data:/app/data
- ./config.yaml:/app/config.yaml:ro
env_file: .env
environment:
# Docker forwards the published port to the container's network
# interface, not to its loopback — config.yaml's 127.0.0.1 default
# (#1303) would make the panel unreachable via the "8080:8080" mapping
# below despite the healthcheck (run from inside the container) still
# passing. The container's own network namespace is already the
# exposure boundary here, so binding wider than loopback is safe;
# a strong WEB_PASS is still required (`serve` fails fast otherwise).
- WEB_HOST=0.0.0.0
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 30s
timeout: 5s
retries: 3