From a476e267ee9257134756bd15e9b4eb97458721ac Mon Sep 17 00:00:00 2001 From: chuckcharlie Date: Fri, 19 Aug 2022 10:26:16 -0600 Subject: [PATCH 1/2] New version number tags --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb30631..dec9208 100644 --- a/README.md +++ b/README.md @@ -3,7 +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. +Use the *latest* or *version#* tags to auto choose the right architecture. Please test and let me know. I don't have anything at home to test ARM with. 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. From 7b11988e2f5f0dfa9fc49a6c2e5d75134f90a7f1 Mon Sep 17 00:00:00 2001 From: chuckcharlie Date: Wed, 13 Dec 2023 08:29:12 -0700 Subject: [PATCH 2/2] Docker compose example --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index dec9208..87266dd 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.