Files
prind/docker-compose.yaml

236 lines
5.9 KiB
YAML
Raw Normal View History

## Service Definitions
2021-10-16 18:42:56 +02:00
services:
2021-10-16 21:28:14 +02:00
## Klippy Services
##
2021-10-16 18:42:56 +02:00
klipper:
image: mkuf/klipper:latest
restart: unless-stopped
privileged: true
logging:
driver: none
depends_on:
init:
condition: service_completed_successfully
2024-02-08 22:41:50 +02:00
command: >
-I printer_data/run/klipper.tty
-a printer_data/run/klipper.sock
printer_data/config/printer.cfg
-l printer_data/logs/klippy.log
volumes:
- /dev:/dev
- ./config:/opt/printer_data/config
- run:/opt/printer_data/run
- gcode:/opt/printer_data/gcodes
- log:/opt/printer_data/logs
labels:
org.prind.service: klipper
## WebApi
##
moonraker:
image: mkuf/moonraker:latest
2021-10-16 18:42:56 +02:00
restart: unless-stopped
pid: host
logging:
driver: none
depends_on:
2022-02-28 19:42:16 +01:00
init:
condition: service_completed_successfully
klipper:
condition: service_started
2021-10-16 18:42:56 +02:00
volumes:
- /dev/null:/opt/klipper/config/null
- /dev/null:/opt/klipper/docs/null
- /run/dbus:/run/dbus
- /run/systemd:/run/systemd
- run:/opt/printer_data/run
- gcode:/opt/printer_data/gcodes
- log:/opt/printer_data/logs
- moonraker-db:/opt/printer_data/database
- ./config:/opt/printer_data/config
profiles:
- fluidd
- mainsail
- klipperscreen
2022-12-12 18:18:49 +01:00
- moonraker-telegram-bot
2023-05-28 13:23:20 +02:00
- mobileraker_companion
labels:
org.prind.service: moonraker
traefik.enable: true
traefik.http.services.moonraker.loadbalancer.server.port: 7125
traefik.http.routers.moonraker.rule: PathRegexp(`^/(websocket|printer|api|access|machine|server)`)
traefik.http.routers.moonraker.entrypoints: web
2021-10-16 18:42:56 +02:00
## Frontends
##
octoprint:
2021-10-26 21:25:52 +02:00
image: octoprint/octoprint:minimal
2021-10-16 21:28:14 +02:00
restart: unless-stopped
depends_on:
2023-06-07 20:57:35 +02:00
klipper:
2022-02-28 19:42:16 +01:00
condition: service_started
privileged: true
2021-10-16 21:28:14 +02:00
volumes:
- /dev:/dev
- run:/opt/printer_data/run
- octoprint:/octoprint
- ./config/octoprint.yaml:/octoprint/octoprint/config.yaml
profiles:
- octoprint
2021-10-17 15:32:04 +02:00
labels:
org.prind.service: octoprint
traefik.enable: true
traefik.http.services.octoprint.loadbalancer.server.port: 5000
traefik.http.routers.octoprint.rule: PathPrefix(`/`)
traefik.http.routers.octoprint.entrypoints: web
fluidd:
image: ghcr.io/fluidd-core/fluidd:latest
restart: unless-stopped
profiles:
- fluidd
labels:
org.prind.service: fluidd
traefik.enable: true
traefik.http.services.fluidd.loadbalancer.server.port: 80
traefik.http.routers.fluidd.rule: PathPrefix(`/`)
traefik.http.routers.fluidd.entrypoints: web
2021-10-22 15:46:29 +02:00
mainsail:
image: ghcr.io/mainsail-crew/mainsail:edge
2021-10-22 15:46:29 +02:00
restart: unless-stopped
profiles:
- mainsail
labels:
org.prind.service: mainsail
traefik.enable: true
traefik.http.services.mainsail.loadbalancer.server.port: 80
traefik.http.routers.mainsail.rule: PathPrefix(`/`)
traefik.http.routers.mainsail.entrypoints: web
2021-10-22 15:46:29 +02:00
2022-12-12 18:18:49 +01:00
## additional Services
##
klipperscreen:
image: mkuf/klipperscreen:latest
restart: unless-stopped
network_mode: host
pid: host
profiles:
- klipperscreen
volumes:
- /run/dbus:/run/dbus
- /run/systemd:/run/systemd
2022-03-25 17:06:11 +01:00
- /etc/localtime:/etc/localtime:ro
- /tmp/.X11-unix:/tmp/.X11-unix
2022-03-25 17:06:11 +01:00
- ./config:/opt/cfg
labels:
org.prind.service: klipperscreen
2022-12-12 18:18:49 +01:00
moonraker-telegram-bot:
image: lefskiy/moonraker-telegram-bot:latest
2022-12-12 18:18:49 +01:00
restart: unless-stopped
logging:
driver: none
profiles:
- moonraker-telegram-bot
volumes:
- gcode:/opt/printer_data/gcodes
- log:/opt/printer_data/logs
- ./config:/opt/printer_data/config
labels:
org.prind.service: moonraker-telegram-bot
2022-12-12 18:18:49 +01:00
2023-05-28 13:23:20 +02:00
mobileraker_companion:
image: ghcr.io/clon1998/mobileraker_companion:latest
restart: unless-stopped
profiles:
- mobileraker_companion
volumes:
- ./config:/opt/printer_data/config
labels:
org.prind.service: mobileraker_companion
hostmcu:
image: mkuf/klipper:latest-hostmcu
restart: unless-stopped
privileged: true
volumes:
- /dev:/dev
- run:/opt/printer_data/run
profiles:
- hostmcu
labels:
org.prind.service: hostmcu
moonraker-obico:
image: ghcr.io/thespaghettidetective/moonraker-obico:latest
restart: unless-stopped
privileged: true
volumes:
- ./config:/opt/printer_data/config
- log:/opt/printer_data/logs
profiles:
- moonraker-obico
labels:
org.prind.service: moonraker-obico
spoolman:
image: ghcr.io/donkie/spoolman:latest
restart: unless-stopped
volumes:
- spoolman-db:/home/app/.local/share/spoolman
profiles:
- spoolman
environment:
SPOOLMAN_BASE_PATH: /spoolman
labels:
org.prind.service: spoolman
traefik.enable: true
traefik.http.services.octoprint.loadbalancer.server.port: 8000
traefik.http.routers.octoprint.rule: PathPrefix(`/spoolman`)
traefik.http.routers.octoprint.entrypoints: web
## Accompanying Services/Infra
##
2021-10-16 21:28:14 +02:00
## Config dir needs to be writable by uid/gid 1000
## This container sets the right permissions and exits
init:
image: busybox:latest
command: chown -R 1000:1000 /prind/config
volumes:
- .:/prind
labels:
org.prind.service: init
2021-10-17 15:32:04 +02:00
## Loadbalancer/Proxy
2021-10-17 15:32:04 +02:00
traefik:
image: traefik:3.5
2021-10-17 15:32:04 +02:00
command:
- "--accesslog"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
2021-10-17 15:32:04 +02:00
ports:
- "80:80"
2021-10-17 15:32:04 +02:00
restart: unless-stopped
volumes:
2024-02-08 22:41:50 +02:00
- "/var/run/docker.sock:/var/run/docker.sock:ro"
labels:
org.prind.service: traefik
2021-10-16 18:42:56 +02:00
volumes:
run:
2021-11-29 19:57:32 +01:00
driver_opts:
type: tmpfs
device: tmpfs
2021-10-16 21:28:14 +02:00
gcode:
octoprint:
moonraker-db:
log:
driver_opts:
type: tmpfs
device: tmpfs
spoolman-db: