https://github.com/pagantis/docker-php
Docker Images for PHP development
https://github.com/pagantis/docker-php
apache debian docker php ubuntu
Last synced: about 2 months ago
JSON representation
Docker Images for PHP development
- Host: GitHub
- URL: https://github.com/pagantis/docker-php
- Owner: pagantis
- Created: 2018-11-14T08:20:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-13T10:50:35.000Z (over 7 years ago)
- Last Synced: 2025-03-02T10:02:03.205Z (over 1 year ago)
- Topics: apache, debian, docker, php, ubuntu
- Homepage: https://hub.docker.com/r/pagantis/docker-php
- Size: 27.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ubuntu + Apache 2.4 + PHP (7.x)
###Development Image
this is a simple image of docker that contains the typical build of a Web server that uses
Apache 2.4 and PHP 7.1. It's based on Ubuntu:latest.
**Go to the desired branch of the version of PHP you are searching.**
It also brings the typical extensions of PHP and Apache that a normal symfony 4 project
requires.
##### extras:
* npm
* bower
* composer
##### php-extensions:
* Mysqlnd
* Soap
* Sockets
* ftp
* Curl
* Libedit
* Openssl
* Zlib
* Imap
* Kerberos
* Imap-ssl
* Intl
* Pcntl
* Redis
* mysqli
* pdo
* pdo_mysql
* mbstring
* mcrypt
* iconv
* zip
* gd
##### apache document-root:
* working-dir: /var/www
##### docker-compose example for Symfony4 project
here is a docker-compose example, have in mind you need to create docker/vhost inside
your project. You can use the example vhost in this repository under /config/project-name.conf
Keep in mind this is a default VHOST for a symfony 4 project but you should be able to
adapt it to your own needs.
```bash
version: "3.3"
services:
project-name:
ports:
- "8055:80" //On the left the port that will be exposed
volumes:
- "./:/var/www/project-name:rw" //Mount files to container
- "./docker/vhost:/etc/apache2/sites-enabled" //link VHOST to apache
image: pagantis/docker-php71:latest
working_dir: /var/www/project-name
environment:
ENVIRONMENT: dev
```