forked from dimalo/klipper-web-control-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (88 loc) · 3.06 KB
/
docker-compose.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3.4'
services:
klipper:
image: dimalo/klipper-moonraker
build:
dockerfile: ./klipper/Dockerfile
context: .
# args:
# DEVICE_GROUP: device
# DEVICE_GID: 987
container_name: klipper
ports:
- 7125:7125
restart: unless-stopped
volumes:
- gcode_files:/home/klippy/gcode_files
# be aware to create your own branch if you mount the config folder as it will be updated on the main branch
# that way you can merge upstream changes to your customized configs
- ./config:/home/klippy/.config
- moonraker_data:/home/klippy/.moonraker
# - <<your_config_path>>:/home/klippy/.config
# - ./printer.cfg:/home/klippy/.config/printer.cfg
# mount serial device - take care to grant sufficient permissions to the device: <host_dev>:<container_dev>
# put <container_dev> into your printer.cfg
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
##################################################################
# Example config for a second printer on a different serial port
##################################################################
# klipper_another_printer:
# image: dimalo/klipper-moonraker
# build:
# dockerfile: ./klipper/Dockerfile
# context: .
# # args:
# # DEVICE_GROUP: device
# # DEVICE_GID: 987
# container_name: klipper_another_printer
# ports:
# # As 7125 is already used by the first printer, we map this moonraker's port to 7126 on the host
# - 7126:7125
# restart: unless-stopped
# volumes:
# # Let both klipper instances use the same storage for gcode files
# - gcode_files:/home/klippy/gcode_files
# # be aware to create your own branch if you mount the config folder as it will be updated on the main branch
# # that way you can merge upstream changes to your (developed) configs...
# - ./config_another_printer:/home/klippy/.config
# # - <<your_config_path>>:/home/klippy/.config
# # - ./another_printer.cfg:/home/klippy/.config/printer.cfg
# # mount serial device - take care to grant sufficient permissions to the device: <host_dev>:<container_dev>
# # put <container_dev> into your printer.cfg
# devices:
# - /dev/ttyACM0:/dev/ttyACM0
fluidd:
image: cadriel/fluidd
# build:
# dockerfile: Dockerfile
# context: frontend
restart: unless-stopped
container_name: fluidd
ports:
- 8010:80
depends_on:
- klipper
# - klipper_another_printer
links:
- klipper:klipper
# - klipper_another_printer:klipper_another_printer
mainsail:
image: dimalo/mainsail
build:
dockerfile: Dockerfile
context: frontend
args:
FRONTEND_ZIP_URL: https://github.com/meteyou/mainsail/releases/latest/download/mainsail.zip
container_name: mainsail
ports:
- 8011:80
depends_on:
- klipper
# - klipper_another_printer
links:
- klipper:klipper
# - klipper_another_printer:klipper_another_printer
volumes:
gcode_files:
moonraker_data: