mirror of
https://github.com/nikdoof/cups-avahi-airprint.git
synced 2025-12-13 09:52:26 +00:00
Docker compose example
This commit is contained in:
17
README.md
17
README.md
@@ -31,6 +31,23 @@ docker run --name cups --restart unless-stopped --net host\
|
|||||||
chuckcharlie/cups-avahi-airprint:latest
|
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:
|
||||||
|
- </your/services/dir>:/services
|
||||||
|
- </your/config/dir>:/config
|
||||||
|
environment:
|
||||||
|
CUPSADMIN: "<YourAdminUsername>"
|
||||||
|
CUPSPASSWORD: "<YourPassword>"
|
||||||
|
restart: unless-stopped
|
||||||
|
```
|
||||||
|
|
||||||
## Add and set up printer:
|
## Add and set up printer:
|
||||||
* CUPS will be configurable at http://[host ip]:631 using the CUPSADMIN/CUPSPASSWORD.
|
* 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.
|
* Make sure you select `Share This Printer` when configuring the printer in CUPS.
|
||||||
|
|||||||
Reference in New Issue
Block a user