add stack node/autoheal

This commit is contained in:
Yann Autissier 2022-11-16 13:36:09 +00:00
parent 23cd8f2779
commit b2c389141d
3 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CMDARGS += node-exec stack-node-exec node-exec:% node-exec@% node-run node-run:% node-run@%
node ?= node/certbot node/consul node/fabio node/registrator
node ?= node/autoheal node/certbot node/consul node/fabio node/registrator
ENV_VARS += DOCKER_HOST_IFACE DOCKER_HOST_INET4 DOCKER_INTERNAL_DOCKER_HOST
SETUP_LETSENCRYPT ?=

11
stack/node/autoheal.yml Normal file
View File

@ -0,0 +1,11 @@
version: '3.6'
services:
autoheal:
container_name: ${NODE_COMPOSE_PROJECT_NAME}-autoheal
image: willfarrell/autoheal:latest
environment:
- AUTOHEAL_CONTAINER_LABEL=all
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View File

@ -35,7 +35,6 @@ services:
- SERVICE_8500_TAGS=${NODE_CONSUL_SERVICE_8500_TAGS}
- SERVICE_8600_IGNORE=true
- SERVICE_ADDRESS=${DOCKER_HOST_INET4}
- SERVICE_CHECK_SCRIPT=docker-healthcheck ${DOCKER_HOST_INET4}
network_mode: host
restart: always
volumes: