version: '3.7' services: front: image: registry.verdnatura.es/salix-front:${TAG} build: context: . dockerfile: front/Dockerfile ports: - ${PORT_FRONT}:80 deploy: replicas: 3 back: image: registry.verdnatura.es/salix-back:${TAG} build: . ports: - ${PORT_BACK}:3000 environment: - NODE_ENV configs: - source: salix_datasources target: /etc/salix/datasources.json - source: salix_print target: /etc/salix/print.json - source: salix-branch_datasources target: /etc/salix/datasources.${NODE_ENV}.json - source: salix-branch_print target: /etc/salix/print.${NODE_ENV}.json volumes: - /mnt/storage/pdfs:/var/lib/salix/pdfs - /mnt/storage/dms:/var/lib/salix/dms deploy: replicas: 6 configs: salix_datasources: external: true salix_print: external: true salix-branch_datasources: name: salix-${BRANCH_NAME}_datasources salix-branch_print: name: salix-${BRANCH_NAME}_print