-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.logs.yml
More file actions
39 lines (37 loc) · 1.09 KB
/
compose.logs.yml
File metadata and controls
39 lines (37 loc) · 1.09 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
services:
log-signer:
image: ghcr.io/nesaorg/devsigner:latest
container_name: log-signer
restart: unless-stopped
user: "0:0"
networks: [nesa]
env_file:
- ./env/base.env
- ./env/orchestrator.env
environment:
INGEST_URL: ${INGEST_URL:-http://38.80.122.133:11444/ingest}
INGEST_API_KEY: ${INGEST_API_KEY:-nesa-logs-v2-8bc28d5caeb84126f359d557c48ddb8c}
BOOTSTRAP_LOG: ${BOOTSTRAP_LOG:-/hostlogs/bootstrap.log}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./logging/log-harvest.sh:/usr/local/bin/log-harvest.sh:ro
- ${HOME}/.nesa/logs:/hostlogs:ro
- log-signer-state:/var/lib/log-signer
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint: ["/bin/sh", "-lc"]
command: ["/usr/local/bin/log-harvest.sh"]
healthcheck:
test:
[
"CMD-SHELL",
"pgrep -f '/usr/local/bin/devsigner' >/dev/null || pgrep -f 'docker events' >/dev/null",
]
interval: 10s
timeout: 3s
retries: 10
networks:
nesa:
driver: bridge
volumes:
log-signer-state: {}