Public Repository

Last pushed: 2 years ago
Short Description
Symfony 3 docker image :)
Full Description

Symfony 3

Symfony is a set of PHP Components, a Web Application framework, a Philosophy, and a Community - all working together in harmony.

How to use this image

First you need to create a new Symfony project with composer

Creating a Symfony Application with Composer

$ composer create-project symfony/framework-standard-edition my_project_sf3 "3.1.*"

Add a docker-compose.yml file with your custom values:

apache2php5:
    image: pgbastien/apache2php5
    volumes_from:
       - application
    ports:
        - 8080:80
    volumes:
        - /logs/apache2:/var/log/apache2
        - ./config/apache2:/etc/apache2/sites-enabled
        - ./config/php5/apache2:/etc/php5/apache2
        - ./config/php5/cli:/etc/php5/cli
    environment:
        POST_MAX_SIZE: 10M
        UPLOAD_MAX_FILESIZE: 10M
        MEMORY_LIMIT: 128M
        MAX_EXECUTION_TIME: 30
        DOCUMENTROOT: /var/www
        SERVERNAME: srv-docker
        SERVERALIAS:
        ERRORLOG: error.log
        ACCESSLOG: access.log
application:
    image: pgbastien/symfony3
    volumes:
        - ./www:/var/www/symfony
        - ./logs/symfony:/var/www/symfony/app/logs
    tty: true
db:
    image: pgbastien/mysql56
    ports:
        - 3366:3306
    volumes:
        - ./mysql:/var/lib/mysql
    environment:
        MYSQL_ROOT_PASSWORD: pwd
        MYSQL_DATABASE: symfony3
        MYSQL_USER: sf3
        MYSQL_PASSWORD: sf3pwd

Start containers

docker-compose up -d

Check Symfony 3 is ready !

http://127.0.0.1:8080/symfony/sf3/web/app_dev.php/
Docker Pull Command
Owner
pgbastien