Skip to content

Commit

Permalink
Docker compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckcharlie committed Dec 13, 2023
1 parent 9e1818b commit 7b11988
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
- </your/services/dir>:/services
- </your/config/dir>:/config
environment:
CUPSADMIN: "<YourAdminUsername>"
CUPSPASSWORD: "<YourPassword>"
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.
Expand Down

0 comments on commit 7b11988

Please sign in to comment.