-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.example.yml
41 lines (38 loc) · 1.34 KB
/
docker-compose.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "3.7"
services:
web-verifier-plus:
container_name: web-verifier-plus
build: .
environment:
- HEALTH_CHECK_SMTP_HOST=add your email host, like smtp.sendgrid.net
- HEALTH_CHECK_SMTP_USER=
- HEALTH_CHECK_SMTP_PASS=
- HEALTH_CHECK_EMAIL_FROM=Digital Credentials Consortium Demo Issuer <[email protected]>
- HEALTH_CHECK_EMAIL_RECIPIENT=the email addresss of whoever should receive unhealthy notications
- HEALTH_CHECK_EMAIL_SUBJECT="DCC Dashboard Issuer Coordinator Microservice Healthcheck"
- HEALTH_CHECK_WEB_HOOK=a webhook like those of Slack
- HEALTH_CHECK_SERVICE_URL=http://localhost:3000/api/healthz - the healthz endpoint
- HEALTH_CHECK_SERVICE_NAME=VERIFIER-PLUS
- DB_USER=your mongo user
- DB_PASS=and mongo password
- DB_HOST=and mongo host
healthcheck:
test: ["CMD", "node", "healthcheck.mjs"]
interval: 30m
retries: 3
start_period: 30s
timeout: 80s
ports:
- "3000:3000"
labels:
autoheal: true
autoheal:
image: willfarrell/autoheal:latest
restart: always
environment:
- AUTOHEAL_INTERVAL=60
- AUTOHEAL_START_PERIOD=30
- WEBHOOK_URL=an optional webhook to report restarts
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock