MySQL connection from docker container php:8.1.17-apache to docker container mysql:8.0.32 doesn't work – PHP Versions
I am trying to connect from this docker container: version: '3.8' services: vidslide-api: image: php:8.1.17-apache ports: - "80:80" volumes: - ./htdocs:/var/www/html command: > sh -c " docker-php-ext-install mysqli && docker-php-ext-enable mysqli && apache2-foreground " to this docker container: version: '3.8'…