From c819eef1382698392af8eb17fc6c26a13450f9f6 Mon Sep 17 00:00:00 2001 From: chuckcharlie Date: Wed, 13 Dec 2023 08:33:50 -0700 Subject: [PATCH 1/2] Docker compose example --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index cb30631..a52b764 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,23 @@ docker run --name cups --restart unless-stopped --net host\ chuckcharlie/cups-avahi-airprint:latest ``` +### Example docker compose config: +``` +version: '3.5' +services: + cups: + image: chuckcharlie/cups-avahi-airprint:latest + container_name: cups + network_mode: host + volumes: + - :/services + - :/config + environment: + CUPSADMIN: "" + CUPSPASSWORD: "" + restart: unless-stopped +``` + ## Add and set up printer: * CUPS will be configurable at http://[host ip]:631 using the CUPSADMIN/CUPSPASSWORD. * Make sure you select `Share This Printer` when configuring the printer in CUPS. From dc5c6e072003cf6883fc9fb5c6e550650dac0114 Mon Sep 17 00:00:00 2001 From: chuckcharlie Date: Wed, 13 Dec 2023 08:46:53 -0700 Subject: [PATCH 2/2] Formatting --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a52b764..89bfc0e 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,7 @@ Fork from [quadportnick/docker-cups-airprint](https://github.com/quadportnick/docker-cups-airprint) ### Now supports ARM64 and AMD64! -Use the *latest* tag to auto choose the right architecture. -Please test and let me know. I don't have anything at home to test ARM with. +Use the *latest* or *version#* tags to auto choose the right architecture. This Alpine-based Docker image runs a CUPS instance that is meant as an AirPrint relay for printers that are already on the network but not AirPrint capable. The other images out there never seemed to work right. I forked the original to use Alpine instead of Ubuntu and work on more host OS's. @@ -16,7 +15,7 @@ This Alpine-based Docker image runs a CUPS instance that is meant as an AirPrint ### Variables: * `CUPSADMIN`: the CUPS admin user you want created - default is CUPSADMIN if unspecified -* `CUPSPASSWORD`: the password for the CUPS admin user - default is admin username if unspecified +* `CUPSPASSWORD`: the password for the CUPS admin user - default is the same value as `CUPSADMIN` if unspecified ### Ports/Network: * Must be run on host network. This is required to support multicasting which is needed for Airprint.