Skip to content

d8devs.com

Developer, Maker.

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

Tag: docker compose with healthcheck

Posted on 07.09.202107.09.2021

docker-compose with condition (healthcheck)

Hits: 209

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/

Suche

Contact koray@d8devs.com

Recent Posts

  • Dump PHP 8.1 OPCodes using Vulkan Logic Dumper with Bonus
  • Get shell access to nodes in Kubernetes via kubectl
  • Generate base64 encoded things (password, secrets, etc. ) in terminal/bash
  • kubectl autocompletion on windows & git bash
  • How to develop PHP applications on Local Kubernetes with Helm

Categories

  • 3D Printing (15)
  • Apple M1 (8)
  • Development (58)
  • DIY (4)
  • Docker (19)
  • Helm (10)
  • Javascript (9)
  • Kubernetes (17)
  • Linux (16)
  • NodeJS (4)
  • PHP (29)
  • Raspberry PI 3 (4)
  • Raspberry Pi Zero W (2)
  • Server (15)
  • Ubuntu (6)
  • Uncategorized (3)
  • Vagrant (1)

Statistics

  • 135
  • 80
  • 390
  • 198
  • 3,321
  • 11,633
  • 159,802
  • 359,647
  • 170,039
  • 71
  • 0
  • 87
Proudly powered by WordPress