docker-compose/test/docker-compose.yml
Alexander Zeitler afb2b1116b fix(test): fix broken tests
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.
2021-04-10 21:38:12 +02:00

14 lines
No EOL
317 B
YAML

version: '2'
services:
web:
image: nginx:1.16.0
container_name: compose_test_web
command: 'nginx -g "daemon off;"'
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