only healthcheck the webserver, update default worker replicas

This commit is contained in:
Will Murphy 2022-11-07 21:47:40 -06:00
parent 3b34244403
commit 725346186b
2 changed files with 9 additions and 2 deletions

View file

@ -20,5 +20,4 @@ RUN npm run build
# entry
WORKDIR /usr/src/guppe
EXPOSE 443 80
HEALTHCHECK CMD /usr/bin/curl --fail http://localhost/ || exit 1
CMD [ "node", "index.js" ]

View file

@ -24,13 +24,21 @@ services:
driver: local
options:
max-size: '10m'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 30s
worker1:
image: datatitian/guppe
command: [ "node", "deliveryWorker.js" ]
deploy:
mode: replicated
replicas: 8
replicas: 34
restart: always
env_file: '.env'
environment: