-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
20 lines (20 loc) · 741 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
20 lines (20 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Self-host quickstart: runs the open-source Kiln MCP server against your
# own printer. This is separate from the infrastructure that runs the
# hosted api.kiln3d.com service, which isn't part of this repo.
# See README's "Run in Docker" section for usage.
services:
kiln:
build: .
environment:
- KILN_PRINTER_TYPE=${KILN_PRINTER_TYPE:-octoprint}
- KILN_PRINTER_HOST=${KILN_PRINTER_HOST}
- KILN_PRINTER_API_KEY=${KILN_PRINTER_API_KEY}
ports:
- "8000:8000"
restart: unless-stopped
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s