-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 2.73 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (70 loc) · 2.73 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# MakerPrompt local development stack.
#
# Usage:
# docker compose up # start everything
# docker compose up cloud # start only the Cloud API
# docker compose up edge # start EdgeAgent and its Cloud dependency
#
# To rebuild after code changes:
# docker compose build && docker compose up
#
# To configure a real printer edit the edge-agent section of this file
# or supply an appsettings.Production.json volume mount.
#
# The fallback agent key is public development data. Override both
# MAKERPROMPT_AGENT_API_KEY and MAKERPROMPT_AGENT_API_KEY_HASH together before
# using this stack outside an isolated local machine.
services:
# ── Cloud API ────────────────────────────────────────────────────────────────
cloud:
build:
context: .
dockerfile: src/MakerPrompt.Cloud/Dockerfile.dev
image: makerprompt/cloud:dev
container_name: makerprompt-cloud
restart: unless-stopped
ports:
- "8080:8080"
environment:
ASPNETCORE_ENVIRONMENT: Development
ASPNETCORE_URLS: "http://+:8080"
MakerPrompt__Auth__AgentApiKeyHash: "${MAKERPROMPT_AGENT_API_KEY_HASH:-810f31e636d0a000b52119d02c1827153c02464e963628e69bb0057dc43dc68f}"
volumes:
- cloud-data:/app/data
networks:
- makerprompt
# ── EdgeAgent (local x64 dev mode) ──────────────────────────────────────────
# For ARM64 / Jetson Nano use:
# dockerfile: src/MakerPrompt.EdgeAgent/Dockerfile
edge:
build:
context: .
dockerfile: src/MakerPrompt.EdgeAgent/Dockerfile.dev
image: makerprompt/edge-agent:dev
container_name: makerprompt-edge
restart: unless-stopped
depends_on:
- cloud
environment:
DOTNET_ENVIRONMENT: Development
# Point to the cloud container by service name.
CloudApi__BaseUrl: "http://cloud:8080"
# Set CloudApi__ApiToken to the plain-text key whose SHA-256 hash is in
# MakerPrompt__Auth__AgentApiKeyHash on the cloud service.
CloudApi__ApiToken: "${MAKERPROMPT_AGENT_API_KEY:-makerprompt-local-dev}"
# Configure printers via environment overrides or a volume-mounted
# appsettings.Production.json (recommended for real deployments).
# Example single-printer override:
# EdgeAgent__Printers__0__PrinterId: "printer-1"
# EdgeAgent__Printers__0__Protocol: "Moonraker"
# EdgeAgent__Printers__0__ApiUrl: "http://192.168.1.100"
volumes:
- edge-data:/app/data
networks:
- makerprompt
networks:
makerprompt:
driver: bridge
volumes:
cloud-data:
edge-data: