-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Docker Healthcheck to wait for services to start (#3652)
Let Docker manager the start order of containers based on the dependencies declared in the docker-compose configuration files. The removes the need to have custom Docker entrypoint scripts that test services and wait for them to start before proceeding. Added 127.0.0.1 to the ports in local.yml so that the containers cannot be connected to remotely. Updated to Elastic stack 5.2.1 for latest.yml environment. Use docker-compose 1.11 on Travis CI. Remove docker-entrypoint.sh scripts.
- Loading branch information
1 parent
5b2d6d7
commit 651012c
Showing
39 changed files
with
135 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
ES_USER?=admin | ||
ES_PASSWORD?=secure | ||
ES_HOST?=http://localhost:9200/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
FROM httpd:2.4.20 | ||
RUN apt-get update && apt-get install -y curl | ||
HEALTHCHECK CMD curl -f http://localhost | ||
COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM couchbase:4.5.1 | ||
HEALTHCHECK CMD curl -f http://localhost:8091 | ||
|
||
COPY configure-node.sh /opt/couchbase | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
FROM haproxy:1.6 | ||
COPY ./haproxy.conf /usr/local/etc/haproxy/haproxy.cfg | ||
RUN apt-get update && apt-get install -y netcat | ||
HEALTHCHECK CMD nc -z localhost 14567 | ||
COPY ./haproxy.conf /usr/local/etc/haproxy/haproxy.cfg | ||
EXPOSE 14567 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.