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