0
1
Fork 0

docker deploy constraint worker

This commit is contained in:
Juan Ferrer 2021-04-30 00:13:18 +02:00
parent 1530b571c0
commit a014a40a12
3 changed files with 8 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.407.50) stable; urgency=low hedera-web (1.407.51) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -17,7 +17,9 @@ services:
- /mnt/storage/image:/var/lib/hedera-web/image-db - /mnt/storage/image:/var/lib/hedera-web/image-db
- /mnt/storage/vn-access:/var/lib/hedera-web/vn-access - /mnt/storage/vn-access:/var/lib/hedera-web/vn-access
deploy: deploy:
replicas: 3 placement:
constraints:
- node.role == worker
cron: cron:
image: registry.verdnatura.es/hedera-web image: registry.verdnatura.es/hedera-web
command: 'cron -f' command: 'cron -f'
@ -28,7 +30,9 @@ services:
- /mnt/storage:/mnt/storage - /mnt/storage:/mnt/storage
- /mnt/storage/image:/var/lib/hedera-web/image-db - /mnt/storage/image:/var/lib/hedera-web/image-db
deploy: deploy:
replicas: 1 placement:
constraints:
- node.role == worker
configs: configs:
config: config:
external: true external: true

View File

@ -1,6 +1,6 @@
{ {
"name": "hedera-web", "name": "hedera-web",
"version": "1.407.50", "version": "1.407.51",
"description": "Verdnatura web page", "description": "Verdnatura web page",
"license": "GPL-3.0", "license": "GPL-3.0",
"repository": { "repository": {