printnatura/docker-compose.yml

36 lines
704 B
YAML

version: '3.7'
services:
main:
image: registry.verdnatura.es/printnatura:latest
build:
context: .
dockerfile: Dockerfile
environment:
CUPS_PASSWORD: ${CUPS_PSW}
ports:
- 631
configs:
- source: config
target: /printnatura/config.local.yml
- source: cups
target: /etc/cups/cupsd.conf
volumes:
- ppd:/etc/cups/ppd
- /mnt/appdata/cups:/etc/cups-new
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