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 condition

Posted on 07.09.202107.09.2021

docker-compose with condition (healthcheck)

Hits: 217

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

  • Cable Holder for 2 Cable
  • A runtime developer console, interactive debugger for Chameleon System 7.1.x
  • 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

Categories

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

Statistics

  • 116
  • 68
  • 570
  • 181
  • 4,440
  • 16,628
  • 168,840
  • 384,914
  • 178,856
  • 419
  • 0
  • 89
Proudly powered by WordPress