mirror of https://github.com/docker/compose.git
16 lines
300 B
YAML
16 lines
300 B
YAML
|
version: '3.8'
|
||
|
services:
|
||
|
my-service:
|
||
|
image: alpine
|
||
|
command: tail -f /dev/null
|
||
|
depends_on:
|
||
|
nginx: {condition: service_healthy}
|
||
|
|
||
|
nginx:
|
||
|
image: nginx:alpine
|
||
|
healthcheck:
|
||
|
test: "echo | nc -w 5 localhost:80"
|
||
|
interval: 2s
|
||
|
timeout: 1s
|
||
|
retries: 10
|