-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (46 loc) · 1.72 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (46 loc) · 1.72 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
version: "3.9"
# ── Agent Event Protocol — ingest server ────────────────────────────────────
#
# Usage:
# docker compose up -d # start in background
# docker compose logs -f aep # tail logs
# docker compose down # stop and remove containers
#
# Configuration:
# Copy .env.example to .env and set your secrets before running.
# All variables below can be overridden in the .env file.
services:
aep:
build:
context: .
dockerfile: Dockerfile
image: aep-ingest:latest
container_name: aep-ingest
restart: unless-stopped
ports:
- "${HOST_PORT:-8787}:8787"
environment:
PORT: "8787"
NODE_ENV: "${NODE_ENV:-production}"
DATABASE_PATH: "/data/aep.db"
LOG_LEVEL: "${LOG_LEVEL:-info}"
LOG_PRETTY: "${LOG_PRETTY:-false}"
ADMIN_TOKEN: "${ADMIN_TOKEN:-}"
DASHBOARD_TOKEN: "${DASHBOARD_TOKEN:-}"
METRICS_TOKEN: "${METRICS_TOKEN:-}"
RATE_LIMIT_RPM: "${RATE_LIMIT_RPM:-300}"
volumes:
# Named volume for durable SQLite storage.
# Replace with a host-path bind mount if you need direct filesystem access:
# - ./data:/data
- aep_data:/data
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8787/health"]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
# ── Volumes ──────────────────────────────────────────────────────────────────
volumes:
aep_data:
driver: local