2020-01-20 21:26:15 +00:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
2020-01-28 13:59:59 +00:00
|
|
|
main:
|
2022-05-05 09:05:05 +00:00
|
|
|
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?}
|
2020-01-21 08:32:19 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2022-05-05 09:05:05 +00:00
|
|
|
args:
|
|
|
|
- VERSION=${VERSION:?}
|
2020-01-21 08:32:19 +00:00
|
|
|
ports:
|
2020-01-29 13:02:50 +00:00
|
|
|
- 80
|
2020-01-21 08:32:19 +00:00
|
|
|
configs:
|
|
|
|
- source: config
|
|
|
|
target: /etc/hedera-web/config.my.php
|
|
|
|
volumes:
|
2021-09-27 12:26:16 +00:00
|
|
|
- /mnt/appdata:/mnt/storage
|
|
|
|
- /mnt/appdata/image:/var/lib/hedera-web/image-db
|
|
|
|
- /mnt/appdata/vn-access:/var/lib/hedera-web/vn-access
|
2020-01-21 08:32:19 +00:00
|
|
|
deploy:
|
2022-05-05 09:05:05 +00:00
|
|
|
replicas: ${REPLICAS:?}
|
2021-04-29 22:13:18 +00:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == worker
|
2020-01-22 20:50:27 +00:00
|
|
|
cron:
|
2022-05-05 09:05:05 +00:00
|
|
|
image: registry.verdnatura.es/hedera-web:${BRANCH_NAME:?}
|
2022-05-08 21:44:20 +00:00
|
|
|
command: '[[ $NODE_ENV == "production" ]] && cron -f'
|
2020-01-22 20:48:37 +00:00
|
|
|
configs:
|
|
|
|
- source: config
|
|
|
|
target: /etc/hedera-web/config.my.php
|
2020-01-23 14:03:28 +00:00
|
|
|
volumes:
|
2021-09-27 12:26:16 +00:00
|
|
|
- /mnt/appdata:/mnt/storage
|
|
|
|
- /mnt/appdata/image:/var/lib/hedera-web/image-db
|
2020-01-22 20:48:37 +00:00
|
|
|
deploy:
|
2022-05-08 21:47:57 +00:00
|
|
|
restart_policy:
|
|
|
|
condition: none
|
2021-04-29 22:13:18 +00:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == worker
|
2020-01-20 21:26:15 +00:00
|
|
|
configs:
|
|
|
|
config:
|
|
|
|
external: true
|
2022-05-05 09:05:05 +00:00
|
|
|
name: ${PROJECT_NAME:?}-${BRANCH_NAME:?}
|