Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 672 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 672 Bytes

PHP Dev

Includes both composer v1 and v2, various database pdo's, and other elements required for CakePHP dev and test.

Makefile

Include the push option to automatically push to docker hub.

make [push=true] <version>
  • Versions
    • 7.1, 7.2, 7.3, 7.4
    • 8.0, 8.1, 8.2

docker-compose

services:
  php71:
    container_name: php71
    image: goclearsky/php-dev:7.1-apache
    restart: always
    ports:
      - "7180:80"
      - "7143:443"
    depends_on:
      - db
    volumes:
      - ${PWD}:/var/www/html
      - /srv/composer-cache:/var/www/.composer

Access the shell as www-data

docker exec -it --user www-data php71 /bin/bash