-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some tests failed because the used `alpine` service did start non-blocking which caused the container to stop immediately. Assertions expecting the container to run then failed. The new structure is to use two blocking `nginx` images which serve a scenario of web and proxy. For the `--abort-on-container-exit` flag tests a third - non-blocking by intend - service based on the `hello-world` image has been added.
- Loading branch information
1 parent
d2df827
commit afb2b11
Showing
4 changed files
with
88 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
version: '2' | ||
|
||
services: | ||
db: | ||
web: | ||
image: nginx:1.16.0 | ||
container_name: compose_test_nginx_2 | ||
container_name: compose_test_web_2 | ||
command: 'nginx -g "daemon off;"' | ||
environment: | ||
NGINX_PORT: 5432 | ||
NGINX_PORT: 8888 | ||
ports: | ||
- "5432" | ||
- "8888" |
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,10 +1,14 @@ | ||
version: '2' | ||
|
||
services: | ||
db: | ||
web: | ||
image: nginx:1.16.0 | ||
container_name: compose_test_nginx | ||
container_name: compose_test_web | ||
command: 'nginx -g "daemon off;"' | ||
alpine: | ||
image: alpine:3.7.3 | ||
container_name: compose_test_alpine | ||
proxy: | ||
image: nginx:1.19.9-alpine | ||
container_name: compose_test_proxy | ||
command: 'nginx -g "daemon off;"' | ||
hello: | ||
image: hello-world | ||
container_name: compose_test_hello |
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