hedera-web/docker-compose.yml

44 lines
1.0 KiB
YAML

version: '3.7'
services:
main:
image: registry.verdnatura.es/hedera-web
build:
context: .
dockerfile: Dockerfile
ports:
- 80
configs:
- source: config
target: /etc/hedera-web/config.my.php
- source: test
target: /etc/hedera-web/config.test.php
volumes:
- /mnt/appdata:/mnt/storage
- /mnt/appdata/image:/var/lib/hedera-web/image-db
- /mnt/appdata/vn-access:/var/lib/hedera-web/vn-access
deploy:
replicas: 3
placement:
constraints:
- node.role == worker
cron:
image: registry.verdnatura.es/hedera-web
command: 'cron -f'
configs:
- source: config
target: /etc/hedera-web/config.my.php
volumes:
- /mnt/appdata:/mnt/storage
- /mnt/appdata/image:/var/lib/hedera-web/image-db
deploy:
placement:
constraints:
- node.role == worker
configs:
config:
external: true
name: ${PROJECT_NAME:?}_config
test:
external: true
name: ${PROJECT_NAME:?}_test