mirror of
https://github.com/docker/compose.git
synced 2025-08-31 06:28:11 +02:00
Lots of our phony Compose files launch pointless long-lived processes so we can assert on state. However, this means they often don't respond well to signals on their own, requiring Compose to timeout and kill them when doing a `down`. Add in lots of `init: true` where appropriate so that we don't block for no reason while running E2E tests all over the place. Additionally, a couple tests have gotten a cleanup so they don't leave behind containers. I still want to build this into the framework in the future, but this is easier for the moment and won't cause any trouble in the future. Signed-off-by: Milas Bowman <milas.bowman@docker.com>
40 lines
695 B
YAML
40 lines
695 B
YAML
services:
|
|
mydb:
|
|
image: mariadb
|
|
network_mode: "service:db"
|
|
environment:
|
|
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
|
|
db:
|
|
image: gtardif/sentences-db
|
|
init: true
|
|
networks:
|
|
- dbnet
|
|
- closesnetworkname1
|
|
- closesnetworkname2
|
|
words:
|
|
image: gtardif/sentences-api
|
|
init: true
|
|
ports:
|
|
- "8080:8080"
|
|
networks:
|
|
- dbnet
|
|
- servicenet
|
|
web:
|
|
image: gtardif/sentences-web
|
|
init: true
|
|
ports:
|
|
- "80:80"
|
|
labels:
|
|
- "my-label=test"
|
|
networks:
|
|
- servicenet
|
|
|
|
networks:
|
|
dbnet:
|
|
servicenet:
|
|
name: microservices
|
|
closesnetworkname1:
|
|
name: closenamenet
|
|
closesnetworkname2:
|
|
name: closenamenet-2
|