Skip to content

dlueth/qoopido.docker.php70

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recommended directory structure

Like with my other containers I encourage you to follow a unified directory structure approach to keep things simple & maintainable, e.g.:

project root
  - docker-compose.yaml
  - config
    - php70
      - fpm
        - php.ini (if needed)
        - conf.d
          - ...
  - htdocs
  - data
    - php70
      - sessions
      - logs

Example docker-compose.yaml

php:
  image: qoopido/php70:latest
  ports:
   - "9000:9000"
  volumes:
   - ./htdocs:/app/htdocs:z
   - ./config/php70:/app/config:z
   - ./data/php70:/app/data:z

Or start container manually

docker run -d -P -t -i -p 9000:9000 \
	-v [local path to htdocs]:/app/htdocs:z \
    -v [local path to config]:/app/config:z \
    -v [local path to data]:/app/data:z \
	--name php qoopido/php70:latest

Included modules

composer
php7.0
php7.0-fpm
php7.0-dev
php7.0-cli
php7.0-common
php7.0-intl
php7.0-bcmath
php7.0-mbstring
php7.0-soap
php7.0-xml
php7.0-zip
php7.0-apcu
php7.0-json
php7.0-gd
php7.0-curl
php7.0-mcrypt
php7.0-mysql
php7.0-sqlite
php-memcached

Configuration

Any files under /app/config will be symlinked into the container's filesystem beginning at /etc/php/7.0. This can be used to overwrite the container's default php fpm configuration with a custom, project specific configuration.

If you need a custom shell script to be run on start or stop (e.g. to set symlinks) you can do so by creating the file /app/config/up.sh or /app/config/down.sh.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published