Skip to content

Instantly share code, notes, and snippets.

@olegsobchuk
Last active April 13, 2017 12:27
Show Gist options
  • Save olegsobchuk/c5a5c729dac484e202003bd78e83b6e5 to your computer and use it in GitHub Desktop.
Save olegsobchuk/c5a5c729dac484e202003bd78e83b6e5 to your computer and use it in GitHub Desktop.
docker_alpine_healthcheck
version: "2.1"
services:
web:
depends_on:
rabbit:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_started
postgres:
healthcheck:
test: "pg_isready -U postgres"
interval: 3s
timeout: 5s
retries: 7
redis:
rabbit:
healthcheck:
test: "rabbitmqctl list_channels"
interval: 3s
timeout: 5s
retries: 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment