-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (42 loc) · 1.47 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
mobility-print:
image: mobility-print
#image: snorre0815/mobility-print:latest
#image: ghcr.io/snorre-k/mobility-print:latest
build: ./mobility-print/build/
container_name: mobility-print
restart: always
volumes:
- papercut:/home/papercut/pc-mobility-print/data
- cups-conf:/etc/cups
- cups-spool:/var/spool/cups
- cups-cache:/var/cache/cups
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# - /mnt/mob-pdf:/var/spool/cups-pdf/ANONYMOUS
ports:
- "9163:9163"
- "9164:9164"
- "631:631"
# network_mode: host
volumes:
papercut:
cups-conf:
cups-spool:
cups-cache:
## For Initial CUPS Setup - please follow these steps:
# - Enable host network
# - docker-compose up -d
# - Container Bash: docker exec -it mobilityprint bash
# + Setup AVAHI
# * apt-get update && apt-get install avahi-daemon cups-browsed
# * /etc/init.d/dbus start && /etc/init.d/avahi-daemon start
# + Set root password for CUPS admin management
# * passwd
# - Configure CUPS to find network or direct attached (not tested) printers
# + https://%servername%:631/admin
# + Add Printers - e.g. IPP (ipp://printer.fqdn:631/ipp/print) - Driver: Manufact. -> driverless cups filter
# - Disable host network
# - Restart container - docker-compose up -d
## If you have configured the virtual CUPS PDF printer you can enable the volume mount of '/var/spool/cups-pdf/ANONYMOUS'