mirror of
https://github.com/danbulant/docker-compose
synced 2026-05-20 21:08:59 +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.
12 lines
212 B
YAML
12 lines
212 B
YAML
version: '3'
|
|
|
|
services:
|
|
some-service:
|
|
image: nginx:1.19.9-alpine
|
|
command: 'nginx -g "daemon off;"'
|
|
volumes:
|
|
- ./volume:/mountedvolume
|
|
- db-data:/mountedsecondvolume
|
|
|
|
volumes:
|
|
db-data:
|