Skip to content

A docker image with centos and Apache httpd with embed configuration for php-fpm

License

Notifications You must be signed in to change notification settings

Miveo/docker-httpd-for-phpfpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Centos image with apache hhtpd (2.4) and php-fpm configuration

How to use

Default configuration will search php-fpm on a php host on 9000 port. You can override this values using environment variables

  • PHP_HOST
  • PHP_PORT

docker-compose :

    version: "2.1"

    services:

        apache:
            image: miveo/centos-httpd-for-phpfpm
            volumes:
                # volume with project specific configuration (eg: vhost)
                - ./apache/my_project.conf:/etc/httpd/conf.d/my_project.conf
                # mount your project's source 
                - ../:/var/www/symfony
            ports:
                - 8080:80
            # if your php container have a different host/port than default value, eg:
            # environment:
            #     - PHP_HOST=php_fpm
            #     - PHP_PORT=9001
    
        php:
            image: miveo/centos-php-fpm:7.0
            tty: true
            volumes_from:
                - apache
            volumes:
                # volume with project specific php.ini configuration
                - ./php/99-test-project.ini:/etc/php.d/99-test-project.ini

About

A docker image with centos and Apache httpd with embed configuration for php-fpm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages