add example for multiple printers to docker-compose.yml

This commit is contained in:
Dieter Schmidt
2021-01-23 21:51:39 +01:00
parent 20bffc5e06
commit 218e78d8fe

View File

@@ -24,6 +24,30 @@ services:
# devices:
# - /dev/ttyUSB0:/dev/ttyUSB0
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:
- 7126: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 (developed) configs...
- ./config_another_printer:/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>
# devices:
# - /dev/ttyACM0:/dev/ttyACM0
fluidd:
image: cadriel/fluidd
container_name: fluidd
@@ -31,8 +55,10 @@ services:
- 8010:80
depends_on:
- klipper
# - klipper_another_printer
links:
- klipper:klipper
# - klipper_another_printer:klipper_another_printer
mainsail:
image: dimalo/mainsail