On Github KamilKopaczyk / php7-docker-presentation
Kamil Kopaczyk
PHP7 hype
Where and how
upgrade environment OR create separate machine and test there no time/resources to setup separate machine/environmentLegacy code
Spaghetti code
Application size
Server settings
who wants to go through all the spaghetti code and fix/revamp itDocker Toolbox:
docker run -p "80" --link some_fpm_container \
    --volumes-from some_data_container \
    -v ./config:/etc/nginx/conf.d \
    -e VIRTUAL_HOST=php7szczecin.docker nginx
# docker-compose.yml
application:
    image: iteraptor/symfony_app
    volumes:
        - ./:/var/www
    tty: true
fpm:
    image: php:5.6-fpm
    working_dir: /var/www
    expose:
        - "9000"
    volumes_from:
        - application
nginx:
    image: nginx
    ports:
        - "80"
    links:
        - fpm
    volumes_from:
        - application
    volumes:
        - ./config:/etc/nginx/conf.d
    environment:
        VIRTUAL_HOST: php7szczecin.docker
# docker-compose.php7.yml
fpm:
    image: php:7.0-fpm