Add healthcheck
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
guacd:
|
guacd:
|
||||||
image: "guacamole/guacd"
|
image: "guacamole/guacd"
|
||||||
container_name: "Guacd"
|
container_name: "guacd"
|
||||||
hostname: "guacd"
|
hostname: "guacd"
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
environment:
|
environment:
|
||||||
@@ -12,17 +12,19 @@ services:
|
|||||||
guacamole:
|
guacamole:
|
||||||
image: "guacamole/guacamole"
|
image: "guacamole/guacamole"
|
||||||
container_name: "Guacamole"
|
container_name: "Guacamole"
|
||||||
hostname: "guacd"
|
hostname: "guacamole"
|
||||||
restart: "unless-stopped"
|
restart: "unless-stopped"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "guacd"
|
- "guacd"
|
||||||
|
healthcheck:
|
||||||
|
test: "curl -f http://localhost:8080/ || exit 1"
|
||||||
environment:
|
environment:
|
||||||
GUACD_HOSTNAME: "guacd"
|
GUACD_HOSTNAME: "guacd"
|
||||||
GUACD_PORT: "4822"
|
GUACD_PORT: "4822"
|
||||||
POSTGRESQL_HOSTNAME: "${DB_HOST}"
|
POSTGRESQL_HOSTNAME: "${DB_HOST}"
|
||||||
POSTGRESQL_DATABASE: "${DB_BASE}"
|
POSTGRESQL_DATABASE: "${DB_BASE}"
|
||||||
POSTGRESQL_USER: "${DB_USER}"
|
POSTGRESQL_USER: "${DB_USER}"
|
||||||
POSTGRESQL_PASSWORD: "${DB_PORT}"
|
POSTGRESQL_PASSWORD: "${DB_PASS}"
|
||||||
ports:
|
ports:
|
||||||
- "10.0.0.1:8080:8080"
|
- "10.0.0.1:8080:8080"
|
||||||
networks:
|
networks:
|
||||||
@@ -31,3 +33,4 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
guacamole:
|
guacamole:
|
||||||
name: "guacamole"
|
name: "guacamole"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user