Public | Automated Build

Last pushed: a year ago
Short Description
Docker Container for Composer with PHP PostgreSQL driver
Full Description

Composer with PHP PostgreSQL driver.

For PHP7 use the php7 tag.

Basic Usage

docker run -v $(pwd):/app \
    webridge/composer \
    install

Link to a PostgreSQL Database

docker run --name db_name -d postgresql

docker run \
    -v $(pwd):/app \
    --link db_name:db \
    webridge/composer \
    install

Keeping Cache

docker run \
    -v $(pwd):/app \
    -v /local/path/to/.composer:/root/.composer \
    -e COMPOSER_HOME=/root/.composer \
    webridge/composer \
    install

You may also add composer parameters after install such as --prefer-dist.

Symfony

If you are building a Symfony 3.* project, you may wanna add an extra environment variable:

    -e SENSIOLABS_ENABLE_NEW_DIRECTORY_STRUCTURE=true \
Docker Pull Command
Owner
webridge

Comments (0)