version: '3.7' services: main: image: registry.verdnatura.es/vn-rfid:${BRANCH_NAME:?} build: context: . dockerfile: Dockerfile ports: - 8888 configs: - source: config target: /app/config.local.yml deploy: placement: constraints: - node.role == worker configs: config: external: true name: vn-rfid_config