-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocker-compose-example.yml
More file actions
45 lines (45 loc) · 1.22 KB
/
docker-compose-example.yml
File metadata and controls
45 lines (45 loc) · 1.22 KB
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
# example working with TrueNAS 25.04 custom app
# should also work for other systems using docker-compose
networks:
airprint-macvlan:
driver: macvlan
driver_opts:
parent: br0
ipam:
config:
- gateway: 192.168.1.1
ip_range: 192.168.1.10/32
subnet: 192.168.1.0/24
services:
airprint:
deploy:
resources:
limits:
cpus: "2"
memory: 1024M
environment:
AVAHI_IPV6: "yes"
CUPS_ADMIN_USER: admin
CUPS_ADMIN_PASSWORD: secr3t
CUPS_LPADMIN_PRINTER1: >-
lpadmin -p TestPrinter -D 'Test Printer Description' -m
'gutenprint.5.3://oki-b430/expert' -o PageSize=A4 -v ipp://myhost/printer
CUPS_LPADMIN_PRINTER1_ACCEPT: cupsaccept TestPrinter
CUPS_LPADMIN_PRINTER1_ENABLE: cupsenable TestPrinter
CUPS_REMOTE_ADMIN: "no"
CUPS_WEBINTERFACE: "no"
NVIDIA_VISIBLE_DEVICES: void
TZ: Europe/Berlin
group_add:
- 568
hostname: airprint
image: drpsychick/airprint-bridge:latest
networks:
airprint-macvlan:
ipv4_address: 192.168.1.10
platform: linux/amd64
privileged: False
pull_policy: missing
restart: on-failure:5
stdin_open: False
tty: False