mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-19 20:38:35 +00:00
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.
11 lines
198 B
YAML
11 lines
198 B
YAML
version: '2'
|
|
|
|
services:
|
|
web:
|
|
image: nginx:1.16.0
|
|
container_name: compose_test_web_2
|
|
command: 'nginx -g "daemon off;"'
|
|
environment:
|
|
NGINX_PORT: 8888
|
|
ports:
|
|
- "8888"
|