hedera-web/docker-compose.yml

41 lines
1018 B
YAML
Raw Normal View History

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:
- 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:?}
2020-01-22 20:48:37 +00:00
command: 'cron -f'
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:
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:?}