Added a view healthchecks
This commit is contained in:
parent
063ff194e2
commit
0520815da1
8 changed files with 75 additions and 16 deletions
|
@ -21,6 +21,10 @@ services:
|
|||
- wallabag
|
||||
volumes:
|
||||
- /var/dockervolumes/wallabag/images:/var/www/wallabag/web/assets/images
|
||||
healthcheck:
|
||||
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.wallabag.rule=Host(`wallabag.${DOMAIN}`)"
|
||||
|
@ -41,14 +45,24 @@ services:
|
|||
- wallabag
|
||||
volumes:
|
||||
- /var/dockervolumes/wallabag/db:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
labels:
|
||||
- "docker.group=wallabag"
|
||||
|
||||
redis:
|
||||
image: redis:alpine
|
||||
image: redis
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- wallabag
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
labels:
|
||||
- "docker.group=wallabag"
|
||||
|
||||
|
||||
networks:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue