salix/docker-compose.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

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:
2019-12-23 13:32:18 +00:00
image: registry.verdnatura.es/salix-front:${BRANCH_NAME}
2019-12-23 10:10:45 +00:00
build:
context: .
dockerfile: front/Dockerfile
ports:
2019-12-23 14:02:30 +00:00
- ${FRONT_PORT}:80
2019-12-23 10:10:45 +00:00
deploy:
replicas: 3
back:
2019-12-23 13:32:18 +00:00
image: registry.verdnatura.es/salix-back:${BRANCH_NAME}
2019-12-23 10:10:45 +00:00
build: .
ports:
2019-12-23 14:02:30 +00:00
- ${BACK_PORT}:3000
2019-12-23 10:10:45 +00:00
environment:
- NODE_ENV
configs:
- source: salix_datasources
target: /etc/salix/datasources.json
2019-12-23 11:23:30 +00:00
- source: salix-branch_datasources
2019-12-23 13:32:18 +00:00
target: /etc/salix/datasources.local.json
2019-12-23 12:07:51 +00:00
- source: salix_print
target: /etc/salix/print.json
2019-12-23 11:23:30 +00:00
- source: salix-branch_print
2019-12-23 13:32:18 +00:00
target: /etc/salix/print.local.json
2019-12-23 10:10:45 +00:00
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
2019-12-23 11:23:30 +00:00
salix-branch_datasources:
2019-12-23 12:07:51 +00:00
external: true
2019-12-23 11:49:02 +00:00
name: salix-${BRANCH_NAME}_datasources
2019-12-23 12:07:51 +00:00
salix_print:
external: true
2019-12-23 11:23:30 +00:00
salix-branch_print:
2019-12-23 12:07:51 +00:00
external: true
2019-12-23 11:49:02 +00:00
name: salix-${BRANCH_NAME}_print