2019-12-23 11:33:55 +00:00
|
|
|
version: '3.7'
|
2018-12-27 15:10:55 +00:00
|
|
|
services:
|
2019-12-23 10:10:45 +00:00
|
|
|
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
|
2019-12-23 11:23:30 +00:00
|
|
|
- source: salix-branch_datasources
|
|
|
|
target: /etc/salix/datasources.${NODE_ENV}.json
|
|
|
|
- source: salix-branch_print
|
2019-12-23 10:10:45 +00:00
|
|
|
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
|
2019-12-23 11:06:05 +00:00
|
|
|
configs:
|
|
|
|
salix_datasources:
|
|
|
|
external: true
|
|
|
|
salix_print:
|
|
|
|
external: true
|
2019-12-23 11:23:30 +00:00
|
|
|
salix-branch_datasources:
|
2019-12-23 11:49:02 +00:00
|
|
|
name: salix-${BRANCH_NAME}_datasources
|
2019-12-23 11:23:30 +00:00
|
|
|
salix-branch_print:
|
2019-12-23 11:49:02 +00:00
|
|
|
name: salix-${BRANCH_NAME}_print
|