-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (64 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
70 lines (64 loc) · 1.62 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
# SpoolmanSync - Automatic filament tracking for Bambu Lab and Creality printers with Spoolman
#
# Choose a profile based on your setup:
#
# Embedded Home Assistant (recommended for most users):
# docker compose --profile embedded up -d
#
# External Home Assistant (if you already have HA with ha-bambulab):
# docker compose --profile external up -d
#
# Shared app configuration
x-app-common: &app-common
build:
context: ./app
dockerfile: Dockerfile
container_name: spoolmansync-app
ports:
- "3000:3000"
volumes:
- app-data:/data
restart: unless-stopped
networks:
- spoolmansync
services:
# External Home Assistant mode
# Use this if you already have Home Assistant with ha-bambulab configured
app:
<<: *app-common
profiles: ["external"]
environment:
- HA_MODE=external
# Embedded Home Assistant mode (recommended)
# Includes a bundled Home Assistant pre-configured with HACS and ha-bambulab
app-embedded:
<<: *app-common
profiles: ["embedded"]
environment:
- HA_MODE=embedded
volumes:
- app-data:/data
- homeassistant-data:/ha-config
depends_on:
- homeassistant
# Bundled Home Assistant - only runs with embedded profile
homeassistant:
profiles: ["embedded"]
build:
context: ./homeassistant
dockerfile: Dockerfile
container_name: spoolmansync-homeassistant
ports:
- "8123:8123"
volumes:
- homeassistant-data:/config
restart: unless-stopped
networks:
- spoolmansync
privileged: true
volumes:
app-data:
homeassistant-data:
networks:
spoolmansync:
driver: bridge