**Dockerfile: FROM php:apache AS virginiasrv LABEL Virginia Garcia Soler WORKDIR /var/www/html RUN apt-get update RUN apt-get install -y nano RUN apt-get install -y default-mysql-client RUN apt-get install -y iputils-ping RUN apt-get install -y iproute2 RUN docker-php-ext-install mysqli ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data ENV APACHE_LOG_DIR /var/log/apache2 EXPOSE 80 ADD ["index.php","/var/www/html/"] ADD ["database.php","/var/www/html/"]
**docker-compose:
version: '3.1'
services:
virginiadatabase: image: mysql:5.7 restart: always environment: MYSQL_DATABASE: prueba MYSQL_USER: root MYSQL_PASSWORD: a MYSQL_ROOT_PASSWORD: a
apache_php: image: virgarsol/apache_php ports: - 8080:80 depends_on: - virginiadatabase
Content type
Image
Digest
Size
171.9 MB
Last updated
over 5 years ago
docker pull virgarsol/apache_php