33 lines
614 B
YAML
33 lines
614 B
YAML
version: '3.7'
|
|
services:
|
|
main:
|
|
image: registry.verdnatura.es/printnatura:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- 631
|
|
configs:
|
|
- source: config
|
|
target: /printnatura/config.local.yml
|
|
- source: cups
|
|
target: /etc/cups/cupsd.conf
|
|
volumes:
|
|
- ppd:/etc/cups/ppd
|
|
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
|