Add the environment variable of the PHP version

This commit is contained in:
Vincent Letourneau
2017-12-19 11:20:12 +01:00
parent 2306e9df9d
commit b74e78af2d
2 changed files with 4 additions and 1 deletions

3
.env
View File

@@ -5,6 +5,9 @@
# Nginx
NGINX_HOST=localhost
# PHP
PHP_VERSION=latest
# MySQL
MYSQL_HOST=mysql
MYSQL_DATABASE=test

View File

@@ -18,7 +18,7 @@ services:
- php
- mysqldb
php:
image: nanoninja/php-fpm
image: nanoninja/php-fpm:${PHP_VERSION}
restart: always
volumes:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"