salix/docker-compose.yml

47 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 14:21:47 +00:00
image: registry.verdnatura.es/salix-front:${BRANCH_NAME:?}
2019-12-23 10:10:45 +00:00
build:
context: .
dockerfile: front/Dockerfile
ports:
- 80
2019-12-23 10:10:45 +00:00
deploy:
replicas: 3
back:
2019-12-23 14:21:47 +00:00
image: registry.verdnatura.es/salix-back:${BRANCH_NAME:?}
2019-12-23 10:10:45 +00:00
build: .
ports:
- 3000
2019-12-23 10:10:45 +00:00
environment:
- NODE_ENV
configs:
2019-12-31 13:53:28 +00:00
- source: datasources
2019-12-23 10:10:45 +00:00
target: /etc/salix/datasources.json
2019-12-31 13:53:28 +00:00
- source: datasources_local
2019-12-23 13:32:18 +00:00
target: /etc/salix/datasources.local.json
2019-12-31 13:53:28 +00:00
- source: print
2019-12-23 12:07:51 +00:00
target: /etc/salix/print.json
2019-12-31 13:53:28 +00:00
- source: print_local
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
2020-07-13 10:23:47 +00:00
- /mnt/storage/image:/var/lib/salix/image
2019-12-23 10:10:45 +00:00
deploy:
replicas: 6
2019-12-23 11:06:05 +00:00
configs:
2019-12-31 13:53:28 +00:00
datasources:
2019-12-23 11:06:05 +00:00
external: true
2019-12-31 14:00:32 +00:00
name: salix_datasources
2019-12-31 13:53:28 +00:00
datasources_local:
2019-12-23 12:07:51 +00:00
external: true
2019-12-23 14:21:47 +00:00
name: salix-${BRANCH_NAME:?}_datasources
2019-12-31 13:53:28 +00:00
print:
2019-12-23 12:07:51 +00:00
external: true
2019-12-31 14:00:32 +00:00
name: salix_print
2019-12-31 13:53:28 +00:00
print_local:
2019-12-23 12:07:51 +00:00
external: true
2019-12-23 14:21:47 +00:00
name: salix-${BRANCH_NAME:?}_print