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: - /mnt/appdata/cups:/etc/cups deploy: placement: constraints: - node.role == worker resources: limits: memory: 1G configs: config: external: true name: printnatura_config cups: external: true name: printnatura_cups