salix/docker-compose.yml

44 lines
1.1 KiB
YAML

version: '3.7'
services:
front:
image: registry.verdnatura.es/salix-front:${BRANCH_NAME:?}
build:
context: .
dockerfile: front/Dockerfile
ports:
- ${FRONT_PORT:?}:80
deploy:
replicas: 3
back:
image: registry.verdnatura.es/salix-back:${BRANCH_NAME:?}
build: .
ports:
- ${BACK_PORT:?}:3000
environment:
- NODE_ENV
configs:
- source: salix_datasources
target: /etc/salix/datasources.json
- source: salix-branch_datasources
target: /etc/salix/datasources.local.json
- source: salix_print
target: /etc/salix/print.json
- source: salix-branch_print
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:
salix_datasources:
external: true
salix-branch_datasources:
external: true
name: salix-${BRANCH_NAME:?}_datasources
salix_print:
external: true
salix-branch_print:
external: true
name: salix-${BRANCH_NAME:?}_print