ULTIMATE Docker with PHP APACHE MYSQL REDIS PHPMYADMIN

HomeOther ContentULTIMATE Docker with PHP APACHE MYSQL REDIS PHPMYADMIN
ULTIMATE Docker with PHP APACHE MYSQL REDIS PHPMYADMIN
ULTIMATE Docker with PHP APACHE MYSQL REDIS PHPMYADMIN
Create a network with Docker using PHP APACHE MYSQL REDIS PHPMYADMIN. Use /"docker-compose up -d/" and /"docker-compose down/" while keeping data in sync between the host computer and Docker containers.

docker-compose.yml
######################
version: '3'
services:
php_apache:
container_name: php_8.2_apache_container
build:
context: .
docker file: Docker file
ports:
– 80h80
volumes:
– C://company:/var/www/html
networks:
– business_network
depend on:
-mysql

mysql:
image: mysql: 8.1.0
container_name: mysql_8.1.0_container
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: company
MYSQL_USER: root
ports:
– /"3306:3306/"
volumes:
– C://company//mysql:/var/lib/mysql
networks:
– business_network

say again:
image: redis:7.2.1
container_name: redis_7.2.1_container
restart: always
ports:
– 6379:6379
networks:
– business_network

phpmyadmin:
image: phpmyadmin:5.2.1
container_name: phpmyadmin_container
restart: always
ports:
– 8080:80
environment:
-PMA_HOSTmysql
-PMA_PORT3306
networks:
– business_network

networks:
company_network:

Docker file
###############
SINCE php:8.2-apache
RUN pecl install redis && docker-php-ext-enable redis
RUN docker-php-ext-install pdo pdo_mysql
RUN a2enmod rewrite

Please take the opportunity to connect and share this video with your friends and family if you find it useful.

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *