2022-11-16 11:58:03 +00:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
main:
|
|
|
|
image: registry.verdnatura.es/printnatura:latest
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2022-11-16 12:47:03 +00:00
|
|
|
environment:
|
|
|
|
CUPS_PASSWORD: ${CUPS_PSW}
|
2022-11-16 11:58:03 +00:00
|
|
|
ports:
|
|
|
|
- 631
|
|
|
|
configs:
|
|
|
|
- source: config
|
|
|
|
target: /printnatura/config.local.yml
|
|
|
|
- source: cups
|
|
|
|
target: /etc/cups/cupsd.conf
|
|
|
|
volumes:
|
|
|
|
- ppd:/etc/cups/ppd
|
2022-11-28 09:08:15 +00:00
|
|
|
- /mnt/appdata/cups/printers.conf:/etc/cups/printers.conf
|
2022-11-16 11:58:03 +00:00
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == worker
|
|
|
|
volumes:
|
|
|
|
ppd:
|
|
|
|
driver: rexray
|
|
|
|
driver_opts:
|
|
|
|
size: 1
|
|
|
|
configs:
|
|
|
|
config:
|
|
|
|
external: true
|
|
|
|
name: printnatura_config
|
|
|
|
cups:
|
|
|
|
external: true
|
|
|
|
name: printnatura_cups
|