2022-10-01 23:25:04 +02:00
|
|
|
services:
|
|
|
|
|
|
|
|
cups:
|
2022-11-12 14:26:57 +01:00
|
|
|
build: .
|
|
|
|
image: cupsd
|
2022-10-01 23:25:04 +02:00
|
|
|
volumes:
|
|
|
|
- /var/run/dbus:/var/run/dbus
|
2024-02-09 13:48:18 +01:00
|
|
|
- ${VOLUMES_PATH}/print/cups:/etc/cups
|
2022-10-01 23:25:04 +02:00
|
|
|
devices:
|
2023-01-12 10:03:26 +01:00
|
|
|
- /dev/usb/lp0
|
2022-10-01 23:25:04 +02:00
|
|
|
privileged: true
|
|
|
|
network_mode: host
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.cups.rule=Host(`print.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.cups.entrypoints=web"
|
|
|
|
- "traefik.http.services.cups.loadbalancer.server.port=631"
|
|
|
|
- "docker.group=print"
|
|
|
|
restart: unless-stopped
|
2023-01-12 10:03:26 +01:00
|
|
|
pull_policy: build
|
2022-10-01 23:25:04 +02:00
|
|
|
|