add stack node/autoheal
This commit is contained in:
parent
23cd8f2779
commit
b2c389141d
|
@ -1,5 +1,5 @@
|
||||||
CMDARGS += node-exec stack-node-exec node-exec:% node-exec@% node-run node-run:% node-run@%
|
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
|
ENV_VARS += DOCKER_HOST_IFACE DOCKER_HOST_INET4 DOCKER_INTERNAL_DOCKER_HOST
|
||||||
SETUP_LETSENCRYPT ?=
|
SETUP_LETSENCRYPT ?=
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -35,7 +35,6 @@ services:
|
||||||
- SERVICE_8500_TAGS=${NODE_CONSUL_SERVICE_8500_TAGS}
|
- SERVICE_8500_TAGS=${NODE_CONSUL_SERVICE_8500_TAGS}
|
||||||
- SERVICE_8600_IGNORE=true
|
- SERVICE_8600_IGNORE=true
|
||||||
- SERVICE_ADDRESS=${DOCKER_HOST_INET4}
|
- SERVICE_ADDRESS=${DOCKER_HOST_INET4}
|
||||||
- SERVICE_CHECK_SCRIPT=docker-healthcheck ${DOCKER_HOST_INET4}
|
|
||||||
network_mode: host
|
network_mode: host
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue