Giter Site home page Giter Site logo

docker-apache-php's Introduction

About this repo

This is the Actency Docker Drupal optimized images for apache-php.

Available tags are:

The image basically contains:

  • All php libraries needed for Drupal (gd, mbstring, mcrypt, zip, soap, pdo_mysql, mysqli, xsl, opcache, calendar, intl, bcmath)
  • Development tools for Drupal (xdebug, codesniffer, compass, less, node.js, grunt, gulp, composer, drush, phing, phpcpd, phpmetrics)
  • Much more...

Docker-compose

Use this docker-compose.yml to create a complete development environment using several Actency Docker images:

version: '2'
services:
  # web with xdebug - actency images
  web:
    # actency/docker-apache-php available tags: latest, 7.3., 7.2, 7.1-1.0, 7.1, 7.0, 5.6, 5.5, 5.4, 5.3, 8.0.1
    image: actency/docker-apache-php:7.1
    ports:
      - "80:80"
      - "9000:9000"
    environment:
      - SERVERNAME=example.local
      - SERVERALIAS=example2.local *.example2.local
      - DRUSH_VERSION = 8 / 9
      - DOCUMENTROOT=htdocs
    volumes:
      - /home/docker/projets/example/:/var/www/html/
      - /home/docker/.ssh/:/var/www/.ssh/
    links:
      - database:mysql
      - mailhog
      - solr
      - redis
      - tika
    tty: true
    # Set logs driver to fluentd only if you enable the logs container
    # Add this logging section to any other container if you want the logs to be sent in es-fluentd-kibana container
    logging:
      driver: fluentd
      options:
        fluentd-address: "127.0.0.1:24224"

  # logs container - actency images
  logs:
    image: actency/docker-es-fluentd-kibana
    ports:
      - "8000:5601" # browse this port to see the logs in kibana
      - "9200:9200"
      - "9300:9300"
      - "24224:24224"

  # database container - actency images
  database:
    # actency/docker-mysql available tags: latest, 5.7, 5.6, 5.5
    image: actency/docker-mysql:5.7
    ports:
      - "3306:3306"
    environment:
      - MYSQL_ROOT_PASSWORD=mysqlroot
      - MYSQL_DATABASE=example
      - MYSQL_USER=example_user
      - MYSQL_PASSWORD=mysqlpwd

  # phpmyadmin container - actency images
  phpmyadmin:
    image: actency/docker-phpmyadmin
    ports:
      - "8010:80"
    environment:
      - MYSQL_ROOT_PASSWORD=mysqlroot
      - UPLOAD_SIZE=1G
    links:
      - database:mysql

  # mailhog container - official images
  mailhog:
    image: mailhog/mailhog
    ports:
      - "1025:1025"
      - "8025:8025"

  # solr container - actency images
  solr:
    # actency/docker-solr available tags: latest, 6.2, 6.1, 6.0, 5.5, 5.4, 5.3, 5.2, 5.1, 5.0, 4.10, 3.6
    image: actency/docker-solr:6.2
    ports:
      - "8080:8983"

  # redis container - official images
  redis:
    image: redis:latest
    ports:
      - "6379"

  # phpRedisAdmin container - actency images
  phpredisadmin:
    image: actency/docker-phpredisadmin
    ports:
      - "9900:80"
    environment:
      - REDIS_1_HOST=redis
    links:
      - redis

  # Tika server container - actency images
  tika:
    image: actency/docker-tika-server
    ports:
      - "9998:9998"

# ##### PROFILING SECTION - EXPERIMENTAL #####
#   # Uncomment this block to enable 3 containers for profiling.
#   # xhprof data will be stored in mongodb and available through the xhgui interface.
#
#   # web with xhprof - actency images
#   web-prof:
#     # actency/docker-apache-php-xhprof available tags: latest, 7.0, 5.6, 5.5, 5.4
#     image: actency/docker-apache-php-xhprof:7.0
#     ports:
#       - "8050:80"
#     environment:
#       - SERVERNAME=example.local
#       - SERVERALIAS=example2.local *.example2.local
#       - DOCUMENTROOT=htdocs
#     volumes:
#       - /home/docker/projets/example/:/var/www/html/
#       - /home/docker/.ssh/:/var/www/.ssh/
#     links:
#       - database:mysql
#       - mailhog
#       - solr
#       - redis
#       - tika
#       - mongo
#     tty: true
#
#   # mongo container - official images
#   mongo:
#     image: mongo
#     ports:
#       - "27017:27017"
#
#   # xhgui container - actency image
#   xhgui:
#     image: actency/docker-xhgui
#     ports:
#       - "8040:80"
#     links:
#       - mongo
# ##### END OF PROFILING SECTION #####

Docker Hub page

docker-apache-php's People

Contributors

franckdrion avatar hakimr avatar jedihe avatar kwillemscafe avatar tehesfr avatar ulichnowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-apache-php's Issues

Problem running drush

I start the service. Install drupal on browser, but I cannot use drush:

  1. docker compose up -d
  2. install drupal using brownser
  3. docker compose web bash
    But seems to try to start apache again and I cannot run any command

What am I missing?

Integrate Lightning/BLT

Thank you for your hard work !

I have tried to use your solution with lightning, but it is difficult because drush, console are installed globally and lightning install them locally.... also php memory_limit is not enough for installing lightning using composer...
Drupal/commerce use bcmath extension and it might be useful to add it too.
I think It might be useful a version without drush, console, xdebug ... or better make them optionally in environment variables in docker-compose.yml.... maybe also xdebug configuration for phpstorm...

Again thank you for your hard work! I'm using it and i have learned a lot from it!
I have tried to create an image from you Dockerfile but I wasn't able to... yet (hope)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.