octoprint-containers/docker-compose.yml

85 lines
2.1 KiB
YAML

# Docker-compose file for Octoprint Containers
version: '3'
volumes:
octoprint_vol: {}
octoklipper_vol: {}
klipper_vol: {}
services:
# Octoprint itself
octoprint:
build:
context: octoprint
args:
OP_MACHINE_NAME:
release: latest
image: amedee/octoprint-octoprint
restart: always
environment:
WITH_KLIPPER: "yes"
OCTO_PRINTER: "/octo_printer"
volumes:
- octoprint_vol:/opt/octoprint/data
- octoklipper_vol:/octo_printer
# - tmp:/tmp
# Uncomment next line for "Plain Docker" setup
# - /run/dbus:/host/run/dbus
# Webcam stream
webcam:
build:
context: webcam
args:
OP_MACHINE_NAME:
image: amedee/octoprint-webcam
restart: always
privileged: true
devices:
- "/dev/video0:/dev/video0"
- "/dev/video1:/dev/video1"
- "/dev/video2:/dev/video2"
environment:
WEBCAM_INPUT: "${WEBCAM_INPUT:-input_raspicam.so -fps 5}"
WEBCAM_START: "${WEBCAM_START:-true}"
# http/https proxy
haproxy:
build:
context: haproxy
args:
OP_MACHINE_NAME:
image: amedee/octoprint-haproxy
restart: always
depends_on:
- octoprint
- webcam
volumes:
- octoprint_vol:/opt/haproxy/data
ports:
- "80:80"
- "443:443"
# klipper 3d-Printer firmware
klipper:
build:
context: klipper
args:
KLIPPER_BRANCH: "work-python3-20200612"
PRINTER_CFG: "printer.cfg"
OCTO_PRINTER: "/octo_printer"
image: cyteen/octoprint-klipper
restart: always
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
environment:
#PRINTER_CFG: "printer.cfg"
PRINTER_CFG: "klipper-geeetech-a10-bltouch.cfg"
#PRINTER_CFG: "generic-bigtreetech-skr-v1.3.cfg"
#OCTO_PRINTER: "/tmp/printer"
OCTO_PRINTER: "/octo_printer"
volumes:
- klipper_vol:/${HOME}/.config
- octoklipper_vol:/octo_printer
#- ./klipper_cfg:/home/default/.config/klipper
#- octoprint_vol:/home/default/.config/klipper
#- octoprint_vol:/tmp