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:
|
2024-01-30 19:41:24 +00:00
|
|
|
image: registry.verdnatura.es/salix-front:${VERSION:?}
|
2019-12-23 10:10:45 +00:00
|
|
|
build:
|
2024-02-06 20:51:15 +00:00
|
|
|
context: front
|
|
|
|
environment:
|
|
|
|
- TZ
|
2024-05-15 05:53:42 +00:00
|
|
|
- NODE_ENV
|
2019-12-23 10:10:45 +00:00
|
|
|
ports:
|
2020-01-29 13:43:15 +00:00
|
|
|
- 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:
|
2024-01-30 19:41:24 +00:00
|
|
|
image: registry.verdnatura.es/salix-back:${VERSION:?}
|
2024-02-09 08:26:46 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: back/Dockerfile
|
2019-12-23 10:10:45 +00:00
|
|
|
environment:
|
2024-02-09 08:23:00 +00:00
|
|
|
- TZ
|
2019-12-23 10:10:45 +00:00
|
|
|
- NODE_ENV
|
2024-01-25 09:44:58 +00:00
|
|
|
- DEBUG
|
2024-02-06 20:51:15 +00:00
|
|
|
ports:
|
|
|
|
- 3000
|
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:
|
2023-06-02 11:51:26 +00:00
|
|
|
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
|