salix/docker-compose.yml

63 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:
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
2019-12-23 10:10:45 +00:00
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:
image: registry.verdnatura.es/salix-back:${VERSION:?}
2019-12-23 10:10:45 +00:00
build: .
environment:
- NODE_ENV
- DEBUG
2024-02-06 20:51:15 +00:00
- TZ
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:
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