salix/docker-compose.yml

61 lines
1.4 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
2020-11-30 18:20:52 +00:00
deploy:
replicas: 2
2021-04-29 22:39:44 +00:00
placement:
constraints:
- node.role == worker
2023-03-06 08:23:24 +00:00
resources:
limits:
memory: 1G
2019-12-23 10:10:45 +00:00
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
- DEBUG
2019-12-23 10:10:45 +00:00
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:
2021-09-27 12:39:49 +00:00
- /mnt/appdata/pdfs:/var/lib/salix/pdfs
- /mnt/appdata/dms:/var/lib/salix/dms
- /mnt/appdata/image:/var/lib/salix/image
2022-05-31 07:06:15 +00:00
- /mnt/appdata/vn-access:/var/lib/salix/vn-access
2020-11-30 18:20:52 +00:00
deploy:
replicas: ${BACK_REPLICAS:?}
2021-04-29 22:39:44 +00:00
placement:
constraints:
- node.role == worker
2023-03-06 08:23:24 +00:00
resources:
limits:
memory: 8G
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