2020-01-20 21:26:15 +00:00
|
|
|
version: '3.7'
|
|
|
|
services:
|
2020-01-28 13:59:59 +00:00
|
|
|
main:
|
2020-01-21 08:32:19 +00:00
|
|
|
image: registry.verdnatura.es/hedera-web
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
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
|
|
|
|
- source: test
|
|
|
|
target: /etc/hedera-web/config.test.php
|
|
|
|
volumes:
|
2020-01-23 14:03:28 +00:00
|
|
|
- /mnt/storage:/mnt/storage
|
2020-01-22 07:39:44 +00:00
|
|
|
- /mnt/storage/image:/var/lib/hedera-web/image-db
|
2020-01-23 13:28:12 +00:00
|
|
|
- /mnt/storage/vn-access:/var/lib/hedera-web/vn-access
|
2020-01-21 08:32:19 +00:00
|
|
|
deploy:
|
2021-04-29 22:30:45 +00:00
|
|
|
replicas: 3
|
2021-04-29 22:13:18 +00:00
|
|
|
placement:
|
|
|
|
constraints:
|
|
|
|
- node.role == worker
|
2020-01-22 20:50:27 +00:00
|
|
|
cron:
|
2020-01-22 20:48:37 +00:00
|
|
|
image: registry.verdnatura.es/hedera-web
|
|
|
|
command: 'cron -f'
|
|
|
|
configs:
|
|
|
|
- source: config
|
|
|
|
target: /etc/hedera-web/config.my.php
|
2020-01-23 14:03:28 +00:00
|
|
|
volumes:
|
|
|
|
- /mnt/storage:/mnt/storage
|
2020-08-29 11:12:40 +00:00
|
|
|
- /mnt/storage/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
|
|
|
|
name: ${PROJECT_NAME:?}_config
|
|
|
|
test:
|
|
|
|
external: true
|
|
|
|
name: ${PROJECT_NAME:?}_test
|