Sign inSign up

portlandwebworks/drupal-apache

By portlandwebworks

•Updated about 9 years ago

A PHP Apache development image for Drupal 7 and Drupal 8

Image
0

462

portlandwebworks/drupal-apache repository overview

⁠THIS IMAGE IS DEPRECATED.

Use of this image is discouraged. This image is kept to support projects that have not yet moved to a newer setup. The image may be removed without notice.

⁠Drupal Apache PHP 5.6 Dev

⁠Overview

A PHP Apache development image configured for Drupal 7 and PHP 5.6

⁠Usage

  • Mount the Drupal root directory to /var/www/html.
  • Mount a directory to /tmp.

⁠SSL

This image has built-in support for SSL.

To configure SSL, provide the following environment variables:

  • PROJECT_DOMAIN
  • SSL_COUNTRY
  • SSL_STATE
  • SSL_LOCALITY
  • SSL_ORG
  • SSL_ORG_UNIT
  • SSL_EMAIL

You will get a browser warning about the self-signed certificate, just accept the connection.

⁠Debugging

This image has built-in support for xdebug. Remote debugging, profiling and tracing are all available via cookie triggers.

To debug, launch and listen a debugger with the xdebug defaults.

To capture profiling and trace outputs, among other things, mount a directory to /tmp.

⁠Notes
  • Due to how Docker does networking from container to host, the container might not receive the correct IP for xdebug.remote_connect_back. You might want to extend the image and override xdebug.ini, disabling xdebug.remote_connect_back and setting xdebug.remote_host to you host's IP.

⁠Compose

version: '2'
services:
  project-apache:
    build: portlandwebworks/drupal-apache:d7
    ports: 
      - "80:80"
      - "443:443"
    environment:
      - MYSQL_HOST=project-mysql
      - MYSQL_DATABASE=db_name
      - MYSQL_USER=user
      - MYSQL_PASSWORD=password
      - MYSQL_PORT=3306 
      - PROJECT_DOMAIN=local.yoursite.com
      - SSL_COUNTRY=US
      - SSL_STATE=ME
      - SSL_LOCALITY=Portland
      - SSL_ORG=portlandwebworks.com
      - SSL_ORG_UNIT=dev
      - [email protected]
    links:
      - project-mysql
    volumes:
      - path/to/site:/var/www/html
      - path/to/tmp:/tmp

⁠Run

docker run -d -p 80:80 443:443 -e "PROJECT_DOMAIN=local.yourdomain.com" -v path/to/site:/var/www/html portlandwebworks/drupal-apache:d7 -v path/to/tmp:/tmp

Tag summary

Content type

Image

Digest

Size

170 MB

Last updated

about 9 years ago

docker pull portlandwebworks/drupal-apache:d7