21 lines
521 B
YAML
21 lines
521 B
YAML
services:
|
|
|
|
cups:
|
|
build: .
|
|
image: cupsd
|
|
volumes:
|
|
- /var/run/dbus:/var/run/dbus
|
|
- ${VOLUMES_PATH}/cups:/etc/cups
|
|
devices:
|
|
- /dev/usb/lp0
|
|
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
|
|
pull_policy: build
|
|
|