Skip to content

Commit f3d279f

Browse files
committed
Merge pull request #1 from Cayan/FEAT-PGSQL
Added support for postgres.
2 parents ed367eb + 8939da8 commit f3d279f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ CMD ["/sbin/my_init"]
1010
RUN apt-get update -y && apt-get install -y vim curl wget build-essential python-software-properties git-core
1111
RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4F4EA0AAE5267A6C
1212
RUN add-apt-repository -y ppa:ondrej/php5-5.6 && add-apt-repository -y ppa:nginx/stable
13-
RUN apt-get update -y && sudo apt-get upgrade -y && apt-get install -y php5 php5-cli php5-fpm php5-mysqlnd php5-curl \
14-
php5-gd php5-mcrypt php5-intl php5-imap php5-tidy php-pear php5-xmlrpc
13+
RUN apt-get update -y && sudo apt-get upgrade -y && apt-get install -y php5 php5-cli php5-fpm php5-mysqlnd \
14+
php5-pgsql php5-curl php5-gd php5-mcrypt php5-intl php5-imap php5-tidy \
15+
php-pear php5-xmlrpc
1516

1617
# Install latest version of nodejs
1718
RUN curl --silent --location https://deb.nodesource.com/setup_4.x | sudo bash -

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,8 @@ Note that the ``/var/www/public`` is the root folder for serving PHP files for y
3131
### Build Folder (within repo)
3232
Contains nginx config files as well as php-fpm settings. Also include setup.sh file that offloads tasks from the Dockerfile to reduce layers.
3333

34+
### Databases
35+
This image supports mysql and postgres.
36+
3437
### Notes
3538
Note that PHP-FPM has been configured to pass through environment variables when starting the container using the ``clear_env = no`` flag within the ``/etc/php5/fpm/pool.d/www.conf`` file.

0 commit comments

Comments
 (0)