Configured PHP 7.4.x server for deploy Drupal 8.x and 9.x based projects
Maintained by: agomezguru
Where to get help:
Docker Official Images: php
Dockerfile linksThe intent of this image is always being together use with a NGINX docker container and MySQL/MariaDB/Percona database with a simple Dockerfile (in /host/path/) like this one:
cat <<EOF > docker-compose.yml
version: '3'
volumes:
my-public:
external: true
my-db-data:
external: true
services:
web:
image: agomezguru/nginx:laravel-5x
ports:
- "$outsidePort:80"
environment:
- HOST_NAME=myAppHostName
- LOG_STATUS=on
- LOG_NAME=myAppLogName
- DEPLOYMENT_STAGE=develop
- PHP_CONTAINER_NAME=php
volumes:
- ../someCode:/srv
- my-public:/srv/public
networks:
- $env-network
php:
image: agomezguru/drupal:9.x-php7.4.23
volumes:
- ../someCode:/srv
- my-public:/srv/public
- ./php-composer.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- $env-network
db:
image: percona:5.7.35
volumes:
- my-db-data:/var/lib/mysql
- ../percona/masterdb/config:/etc/mysql/conf.d
- ../dumps:/backups-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: $envPassword
networks:
- $env-network
# Isolate docker containers arrays between environments.
networks:
$env-network:
driver: bridge
EOF
This container image doesn't support any environment variables.
View php license information and Composer for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Content type
Image
Digest
sha256:c28b25a51…
Size
318.8 MB
Last updated
over 3 years ago
docker pull agomezguru/drupal