Skip to content

d8devs.com

Developer, Maker. Veni, vidi, commit – I came, I saw, I fixed, and now I submit

  • Home
  • Development
    • PHP
    • Raspberry PI 3
    • Raspberry Pi Zero W
      • Linux
    • Helm
    • Vagrant
    • Docker
    • NodeJS
    • Server
      • Kubernetes
    • Javascript
  • 3D Printing
  • T-Shirts & Hoodie Design Ideas
  • DIY
by: d8devsPosted on: 07.09.202107.09.2021

docker-compose with condition (healthcheck)

services:
server:
    depends_on:
      db_server:
        condition: service_healthy
  db_server:
    ....
    healthcheck:
      test: mysqladmin ping -h 127.0.0.1 -u root --password=$$MYSQL_ROOT_PASSWORD
      interval: 5s
      retries: 5

Thanks for Blog Post : https://www.bornfight.com/blog/blog-lamp-docker-setup-with-php-8-and-mariadb-for-symfony-projects/

Views: 19

Development / Docker

Post navigation

Previous PostPrevious Pod Volume via hostPath via Minikube-Docker on Apple M1
Next PostNext Anycubic Vyper Standard Cura Profile v1.0.2 – ABS, PLA, TPU

Contact koray@d8devs.com

Recent Posts

  • My First Successful Fine-Tuning of an LLM on Custom Symfony + Chameleon Knowledge
  • Rückblick: Symfony PHP Meetup Basel – 12. April
  • Ultimaker Cura via Snap – Failed to Eject Error Fix
  • Resolving Laravel SQLite Locked Error in PhpStorm with WSL2
  • OG video from talk by @ilyasut at the Neural Information Processing Systems (December-24, Vancouver) – DE, EN, TR Subtitle/Untertitel/Altyazı

Categories

  • 3D Printing (21)
  • AI (6)
  • Apple M1 (8)
  • Development (75)
  • DIY (6)
  • Docker (19)
  • Helm (11)
  • Javascript (11)
  • Kubernetes (19)
  • Linux (20)
  • NodeJS (4)
  • PHP (42)
  • Raspberry PI 3 (4)
  • Raspberry Pi Zero W (2)
  • Server (22)
  • Ubuntu (10)
  • Uncategorized (6)
  • Vagrant (1)
  • WordPress (4)
  • WSL 2 (1)

Statistics

  • 3
  • 3
  • 14
  • 12
  • 92
  • 607
  • 22,353
  • 37,239
  • 247,502
  • 214
  • 0
  • 115
© 2025 d8devs.com – Theme by ZThemes Studio