Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement healthcheck for app development container #131

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
image: "moodlehq/moodle-php-apache:${MOODLE_DOCKER_PHP_VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion db.mariadb.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
2 changes: 1 addition & 1 deletion db.mssql.5.6.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
2 changes: 1 addition & 1 deletion db.mssql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
2 changes: 1 addition & 1 deletion db.mysql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
2 changes: 1 addition & 1 deletion db.oracle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
7 changes: 6 additions & 1 deletion moodle-app-dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand All @@ -9,6 +9,11 @@ services:
command: npm run ionic:serve
volumes:
- "${MOODLE_DOCKER_APP_PATH}:/app"
healthcheck:
test: "curl -f http://localhost:8100 || exit 1"
interval: 10s
timeout: 3s
start_period: 30s
expose:
- 8100
- 35729
Expand Down
2 changes: 1 addition & 1 deletion moodle-app.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
2 changes: 1 addition & 1 deletion phpunit-external-services.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
2 changes: 1 addition & 1 deletion selenium.chrome.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down
2 changes: 1 addition & 1 deletion selenium.debug.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
selenium:
ports:
Expand Down
2 changes: 1 addition & 1 deletion service.mail.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
volumes:
Expand Down
2 changes: 1 addition & 1 deletion volumes-cached.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Here we support https://docs.docker.com/docker-for-mac/osxfs-caching/
# for improved performance on mac
version: "2"
version: "2.3"
services:
webserver:
volumes:
Expand Down
2 changes: 1 addition & 1 deletion webserver.port.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "2.3"
services:
webserver:
environment:
Expand Down