version: '3.7' services: main: image: registry.verdnatura.es/smart-tag:${BRANCH_NAME:?} build: context: . dockerfile: Dockerfile ports: - 7777 configs: - source: config target: /app/config.js deploy: replicas: ${API_REPLICAS:?} placement: constraints: - node.role == worker configs: config: external: true name: smart-tag_config