-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) Β· 2.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (53 loc) Β· 2.25 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
# docker-compose.yml β recommended deployment for two-service setups
services:
pcap-hunter-ui:
build: .
image: pcap-hunter:latest
command: ["uvicorn", "app.web.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8501"]
# Pin the hostname: the config encryption key is derived from
# user@platform.node() (config_manager.py), so a random per-recreate
# container hostname would make saved API keys undecryptable.
hostname: pcap-hunter
ports:
- "127.0.0.1:8501:8501"
environment:
# LM Studio runs on the HOST β localhost inside the container is the container.
LM_BASE_URL: "${LM_BASE_URL:-http://host.docker.internal:1234/v1}"
# Allow the UI/API to translate a host LAN or loopback address to the
# Docker Desktop host bridge when LM Studio is running on this computer.
PCAP_HUNTER_DOCKER_HOST_FALLBACK: "1"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ${PCAP_HUNTER_DATA_BIND:-./data}:/app/data
- pcap-hunter-home:/home/runner
restart: unless-stopped
pcap-hunter-api:
image: pcap-hunter:latest
command: ["uvicorn", "app.api.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000"]
hostname: pcap-hunter
ports:
- "127.0.0.1:8000:8000"
environment:
# Required for the API to authenticate requests (app/api/settings.py reads
# it softly, so we default empty here β a `:?` guard would abort even
# UI-only `docker compose up pcap-hunter-ui` at interpolation time).
PCAP_HUNTER_API_KEY: "${PCAP_HUNTER_API_KEY:-}"
PCAP_HUNTER_FEED_KEY: "${PCAP_HUNTER_FEED_KEY:-}"
PCAP_HUNTER_API_HOST: "0.0.0.0"
PYTHONPATH: "."
# LM Studio runs on the HOST β localhost inside the container is the container.
LM_BASE_URL: "${LM_BASE_URL:-http://host.docker.internal:1234/v1}"
PCAP_HUNTER_DOCKER_HOST_FALLBACK: "1"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ${PCAP_HUNTER_DATA_BIND:-./data}:/app/data
- pcap-hunter-home:/home/runner
depends_on:
- pcap-hunter-ui
restart: unless-stopped
volumes:
# Persists /home/runner (~/.pcap_hunter_config.json) so encrypted API keys
# survive container recreation.
pcap-hunter-home: